Skip to content

Commit

Permalink
feat: generates *.d.ts files from .ts or .vue source
Browse files Browse the repository at this point in the history
  • Loading branch information
messenjer committed Apr 7, 2022
1 parent 6ed737e commit c3751c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
"ts-jest": "^27.0.4",
"typescript": "4.x.x",
"vite": "2.x.x",
"vite-plugin-dts": "^1.0.5",
"vue": "^3.2.31",
"vue-loader": "17.x.x",
"vue-router": "^4.0.12",
Expand Down
2 changes: 2 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import {resolve} from 'path'
import visualizer from 'rollup-plugin-visualizer'
import dts from 'vite-plugin-dts'

const config = defineConfig({
resolve: {
Expand Down Expand Up @@ -60,6 +61,7 @@ const config = defineConfig({
include: [/\.vue$/, /\.md$/],
}),
visualizer(), // generates admin/stats.html on npm run build
dts(),
],

server: {
Expand Down

0 comments on commit c3751c0

Please sign in to comment.