Skip to content

Commit

Permalink
fix: dist types export
Browse files Browse the repository at this point in the history
  • Loading branch information
LoTwT committed Mar 18, 2024
1 parent fe61782 commit 743a58f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.js"
}
Expand All @@ -30,7 +29,7 @@
"*": {
"*": [
"./dist/*",
"./dist/index.d.ts"
"./*"
]
}
},
Expand Down
6 changes: 5 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"compilerOptions": {
"target": "esnext",
"lib": ["esnext", "dom"],
"lib": ["esnext"],
"moduleDetection": "force",
"baseUrl": ".",
"module": "esnext",
"moduleResolution": "node",
Expand All @@ -12,7 +13,10 @@
"types": ["vitest/globals"],
"strict": true,
"strictNullChecks": true,
"noUnusedLocals": true,
"esModuleInterop": true,
"isolatedModules": true,
"skipDefaultLibCheck": true,
"skipLibCheck": true
}
}
2 changes: 1 addition & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default defineConfig({
format: ["esm", "cjs"],
target: "esnext",
clean: true,
cjsInterop: true,
dts: true,
splitting: true,
cjsInterop: true,
})

0 comments on commit 743a58f

Please sign in to comment.