Skip to content

Commit

Permalink
refactor(components): generate dts for components
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinplemelon authored and 0721Betty committed Nov 29, 2024
1 parent 47dad6c commit 5511829
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"scripts": {
"dev": "vite",
"build": "vue-tsc && vite build",
"build": "vue-tsc && vite build && vue-tsc --declaration",
"preview": "vite preview",
"version:patch": "npm version patch",
"version:minor": "npm version minor",
Expand Down
9 changes: 8 additions & 1 deletion packages/components/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"extends": "../../tsconfig.json",
"include": ["**/*.ts", "**/*.tsx", "**/*.vue"],
"exclude": ["node_modules", "dist", "__test__", "**/*.test.ts", "**/*.spec.ts"]
"exclude": ["node_modules", "dist", "__test__", "**/*.test.ts", "**/*.spec.ts", "vite.config.ts"],
"compilerOptions": {
"baseUrl": ".",
"declarationDir": "./dist",
"allowImportingTsExtensions": false,
"emitDeclarationOnly": true,
"noEmit": false
}
}

0 comments on commit 5511829

Please sign in to comment.