Skip to content

Commit

Permalink
fix: Endre entrypoint filnavn
Browse files Browse the repository at this point in the history
Typescript ser ut til å i noen tilfeller ignorere types verdien og
heller bruke en tilsvarende navspa.d.ts fil i dist, som ikke stemmer med
default export i package.json. Setter entrypoint til index for å unngå
konflikter.
  • Loading branch information
LudvigHz committed Sep 30, 2024
1 parent ce83d1e commit a3e1f90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"files": [
"dist"
],
"main": "./dist/navspa.umd.cjs",
"module": "./dist/navspa.js",
"main": "./dist/index.umd.cjs",
"module": "./dist/index.js",
"exports": {
".": {
"import": "./dist/navspa.js",
"require": "./dist/navspa.umd.cjs"
"import": "./dist/index.js",
"require": "./dist/index.umd.cjs"
}
},
"types": "./dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default defineConfig({
lib: {
entry: resolve(__dirname, "src/index.ts"),
name: "NAVSpa",
fileName: "navspa",
fileName: "index",
},
rollupOptions: {
external: ["react", "react-dom"],
Expand Down

0 comments on commit a3e1f90

Please sign in to comment.