Skip to content

Commit

Permalink
fix(pkg): fix ts type resolution for /node subpath (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmkx authored Aug 16, 2023
1 parent f5d94fa commit 19b79fa
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 249 deletions.
27 changes: 15 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,24 @@
"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"
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"default": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
"require": {
"types": "./dist/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.mts",
"default": "./dist/node.mjs"
},
"require": {
"types": "./dist/node.d.cts",
"default": "./dist/node.cjs"
}
}
},
"main": "./dist/node.cjs",
Expand Down Expand Up @@ -72,7 +75,7 @@
"listhen": "^1.3.0",
"prettier": "^3.0.2",
"typescript": "^5.1.6",
"unbuild": "^1.2.1",
"unbuild": "^2.0.0-rc.0",
"vitest": "^0.34.1"
},
"packageManager": "[email protected]"
Expand Down
Loading

0 comments on commit 19b79fa

Please sign in to comment.