Skip to content

Commit

Permalink
build: add missing node export condition
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Aug 22, 2023
1 parent 567fb35 commit 4081170
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
16 changes: 14 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,26 @@
"wintercg": "./dist/index.mjs",
"worker": "./dist/index.mjs",
"workerd": "./dist/index.mjs",
"node": {
"import": {
"types": "./dist/node.d.mts",
"default": "./dist/node.mjs"
},
"require": {
"types": "./dist/node.d.cts",
"default": "./dist/node.cjs"
}
},
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/node.d.cts",
"default": "./dist/node.cjs"
}
},
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"./node": {
"import": {
Expand Down Expand Up @@ -59,7 +71,7 @@
},
"dependencies": {
"destr": "^2.0.1",
"node-fetch-native": "^1.3.1",
"node-fetch-native": "^1.3.2",
"ufo": "^1.2.0"
},
"devDependencies": {
Expand Down
16 changes: 8 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4081170

Please sign in to comment.