Skip to content

Commit

Permalink
Change vite config
Browse files Browse the repository at this point in the history
  • Loading branch information
JBurkinshaw committed Feb 1, 2025
1 parent 5b30de3 commit 8286d9f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
],
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/spk-library.es.js"
}
}
"types": "./dist/index.d.ts",
"import": "./dist/spk-library.es.js",
"require": "./dist/spk-library.umd.js"
},
"./dist/style.css": "./dist/style.css"
},
"main": "./dist/spk-library.umd.js",
"module": "./dist/spk-library.es.js",
Expand Down
5 changes: 4 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ export default defineConfig({
dts({
insertTypesEntry: true,
include: ['src'],
outDir: 'dist'
outDir: 'dist',
rollupTypes: true,
// Make sure type declarations are copied properly
copyDtsFiles: true,
}),
],
test: {
Expand Down

0 comments on commit 8286d9f

Please sign in to comment.