Skip to content

Commit

Permalink
build: fix export conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Aug 22, 2023
1 parent 5dd02ed commit 790232d
Show file tree
Hide file tree
Showing 2 changed files with 141 additions and 133 deletions.
27 changes: 15 additions & 12 deletions package.json
Expand Up @@ -7,6 +7,7 @@
"type": "module",
"exports": {
".": {
"types": "./lib/index.d.ts",
"browser": "./dist/native.mjs",
"bun": "./dist/native.mjs",
"deno": "./dist/native.mjs",
Expand All @@ -19,33 +20,35 @@
"worker": "./dist/native.mjs",
"workerd": "./dist/native.mjs",
"node": {
"require": "./lib/index.cjs",
"import": "./dist/index.mjs",
"types": "./lib/index.d.ts"
"require": "./lib/index.cjs"
},
"import": "./dist/native.mjs",
"types": "./lib/index.d.ts"
"require": "./dist/native.cjs"
},
"./polyfill": {
"types": "./lib/polyfill.d.ts",
"node": {
"require": "./dist/polyfill.cjs",
"import": "./dist/polyfill.mjs"
"import": "./dist/polyfill.mjs",
"require": "./dist/polyfill.cjs"
},
"import": "./lib/empty.mjs"
"import": "./lib/empty.mjs",
"require": "./lib/empty.mjs"
},
"./node": {
"require": "./dist/node.cjs",
"import": "./dist/node.mjs"
"types": "./lib/index.d.ts",
"import": "./dist/node.mjs",
"require": "./dist/node.cjs"
},
"./src/index.js": {
"types": "./lib/index.d.ts",
"import": "./dist/index.mjs",
"types": "./lib/index.d.ts"
"require": "./lib/index.cjs"
}
},
"types": "./lib/index.d.ts",
"main": "./lib/index.cjs",
"module": "./dist/index.mjs",
"types": "./lib/index.d.ts",
"files": [
"dist",
"lib"
Expand All @@ -67,8 +70,8 @@
"node-fetch": "^3.3.2",
"prettier": "^3.0.2",
"typescript": "^5.1.6",
"unbuild": "^1.2.1",
"unbuild": "^2.0.0",
"vitest": "^0.34.2"
},
"packageManager": "pnpm@8.6.12"
}
}

0 comments on commit 790232d

Please sign in to comment.