Skip to content

Commit

Permalink
[build]: fix tsc build configuration
Browse files Browse the repository at this point in the history
(exclude unnecessary files from the build)
  • Loading branch information
0x009922 committed Mar 14, 2023
1 parent 7744b14 commit 0228216
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"build:clean": "del dist ts-build",
"build:vite": "vite build",
"build:dts": "run-s build:dts:tsc build:dts:rollup",
"build:dts:tsc": "vue-tsc --outDir ts-build --declaration --emitDeclarationOnly",
"build:dts:tsc": "vue-tsc -p tsconfig.build.json",
"build:dts:rollup": "rollup -c rollup.dts.config.cjs"
},
"dependencies": {
Expand Down
9 changes: 9 additions & 0 deletions packages/ui/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "./tsconfig.json",
"include": ["src", "auto-imports.d.ts"],
"compilerOptions": {
"outDir": "ts-build",
"declaration": true,
"emitDeclarationOnly": true
}
}

0 comments on commit 0228216

Please sign in to comment.