Skip to content

Commit

Permalink
chore: Remove superfluous declaration files from the build.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvuckovic committed Apr 6, 2024
1 parent 01ac5c2 commit 4760abf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": "Dusan Vuckovic <[email protected]> (https://dvuckovic.com)",
"scripts": {
"dev": "vite",
"build": "vue-tsc && vite build && rm -r dist/__tests__/ dist/**/__tests__/ dist/main.d.ts dist/types.d.ts",
"build": "vue-tsc && vite build",
"test": "vitest",
"coverage": "vitest run --coverage"
},
Expand Down
12 changes: 11 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,17 @@ const bootstrapIcons = () => {
}

export default defineConfig((_) => ({
plugins: [vue(), dts(), bootstrapIcons()],
plugins: [
vue(),
dts({
exclude: [
'src/main.ts',
'src/types.ts',
'src/**/__tests__/',
],
}),
bootstrapIcons(),
],
build: {
lib: {
entry: {
Expand Down

0 comments on commit 4760abf

Please sign in to comment.