Skip to content

Commit

Permalink
fix: missing file path in package.json (#41)
Browse files Browse the repository at this point in the history
* fix: missing file path in package.json

* bump: version 1.8.6
  • Loading branch information
huynamboz authored Oct 17, 2024
1 parent 4bab046 commit 32da263
Show file tree
Hide file tree
Showing 6 changed files with 1,621 additions and 6 deletions.
1 change: 1 addition & 0 deletions dist/vue-drag-scroller.cjs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion dist/vue-drag-scroller.umd.js

This file was deleted.

2 changes: 1 addition & 1 deletion example/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import './assets/main.css'
import { createApp } from 'vue'
import VueDragScroller from "vue-drag-scroller"
import VueDragScroller from "../node_modules/vue-drag-scroller"
import App from './App.vue'

const app = createApp(App)
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"name": "vue-drag-scroller",
"version": "1.8.5",
"version": "1.8.6",
"type": "module",
"license": "MIT",
"description": "A vue directive that helps you scroll in a more natural way.",
"module": "dist/vue-drag-scroller.es.js",
"main": "dist/vue-drag-scroller.js",
"main": "dist/vue-drag-scroller.cjs.js",
"types": "dist/declarations/index.d.ts",
"exports": {
".": {
"import": "./dist/vue-drag-scroller.es.js",
"require": "./dist/vue-drag-scroller.js",
"require": "./dist/vue-drag-scroller.cjs.js",
"types": "./dist/declarations/index.d.ts"
},
"./package.json": "./package.json",
Expand Down
3 changes: 2 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export default defineConfig(({ mode }) => {
lib: {
entry: fileURLToPath(new URL('./src/index.ts', import.meta.url)),
name: 'vue-drag-scroller',
fileName: (format) => `vue-drag-scroller.${format}.js`
fileName: (format) => `vue-drag-scroller.${format}.js`,
formats: ['es', 'cjs'],
},
},
}
Expand Down
Loading

0 comments on commit 32da263

Please sign in to comment.