Skip to content

Commit

Permalink
rename entry file to index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
smastrom committed Jul 19, 2023
1 parent 75dd7fa commit 3fecdbc
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 21 deletions.
2 changes: 1 addition & 1 deletion demo/Header.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue'
import { useFixedHeader } from '../src/useFixedHeader'
import { useFixedHeader } from '../src'
const headerRef = ref<HTMLElement | null>(null)
Expand Down
2 changes: 1 addition & 1 deletion demo/WithContainer.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue'
import { useFixedHeader } from '../src/useFixedHeader'
import { useFixedHeader } from '../src'
import Header from './Header.vue'
Expand Down
14 changes: 0 additions & 14 deletions src/directive.ts

This file was deleted.

File renamed without changes.
2 changes: 1 addition & 1 deletion tests/components/ContainerScroll.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { onBeforeMount, ref, type CSSProperties } from 'vue'
import { useFixedHeader } from '../../src/useFixedHeader'
import { useFixedHeader } from '../../src'
const props = defineProps<{
enterDelta?: number
Expand Down
2 changes: 1 addition & 1 deletion tests/components/Watch.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref, unref, computed, type Ref } from 'vue'
import { useFixedHeader } from '../../src/useFixedHeader'
import { useFixedHeader } from '../../src'
const props = defineProps<{
watch: Ref<boolean>
Expand Down
4 changes: 2 additions & 2 deletions tests/components/WindowScroll.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { onBeforeMount, ref, type Ref, type CSSProperties } from 'vue'
import { useFixedHeader } from '../../src/useFixedHeader'
import { onBeforeMount, ref, type CSSProperties } from 'vue'
import { useFixedHeader } from '../../src'
const props = defineProps<{
enterDelta?: number
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default defineConfig(({ mode }) => {
return {
build: {
lib: {
entry: 'src/useFixedHeader.ts',
entry: 'src/index.ts',
name: 'vue-use-fixed-header',
fileName: 'index',
formats: ['es', 'cjs'],
Expand Down

0 comments on commit 3fecdbc

Please sign in to comment.