Skip to content

Commit

Permalink
feat(vue): generate type declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
baurine committed Jul 25, 2024
1 parent 2973ced commit a4092e6
Show file tree
Hide file tree
Showing 3 changed files with 376 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"@vitejs/plugin-vue": "^5.0.5",
"typescript": "^5.2.2",
"vite": "^5.3.4",
"vite-plugin-dts": "4.0.0-beta.1",
"vue": "^3.4.31",
"vue-tsc": "^2.0.24"
},
Expand Down
3 changes: 2 additions & 1 deletion packages/vue/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import dts from 'vite-plugin-dts'

export default defineConfig({
plugins: [vue()],
plugins: [vue(), dts()],
build: {
lib: {
entry: 'src/index.ts',
Expand Down
Loading

0 comments on commit a4092e6

Please sign in to comment.