Skip to content

Commit

Permalink
fix: fix ts type resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
tmkx committed Jul 20, 2023
1 parent 41c3b56 commit 330658c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
1 change: 1 addition & 0 deletions node.d.cts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./dist/node";
28 changes: 16 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,33 @@
"wintercg": "./dist/index.mjs",
"worker": "./dist/index.mjs",
"workerd": "./dist/index.mjs",
"node": {
"types": "./dist/node.d.ts",
"import": "./dist/node.mjs",
"require": "./dist/node.cjs"
},
"default": {
"import": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
"default": "./dist/index.mjs"
},
"require": {
"types": "./node.d.cts",
"default": "./dist/node.cjs"
}
},
"./node": {
"types": "./dist/node.d.ts",
"import": "./dist/node.mjs",
"require": "./dist/node.cjs"
"import": {
"types": "./dist/node.d.ts",
"default": "./dist/node.mjs"
},
"require": {
"types": "./node.d.cts",
"default": "./dist/node.cjs"
}
}
},
"main": "./dist/node.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist",
"node.d.ts"
"node.d.ts",
"node.d.cts"
],
"scripts": {
"build": "unbuild",
Expand Down

0 comments on commit 330658c

Please sign in to comment.