Skip to content

Commit

Permalink
build: update exports for node16 typescript resolution
Browse files Browse the repository at this point in the history
resolves #324
  • Loading branch information
pi0 committed Dec 26, 2024
1 parent 421c663 commit 18bc852
Showing 1 changed file with 56 additions and 21 deletions.
77 changes: 56 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,42 +22,77 @@
"exports": {
".": {
"node": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./lib/index.cjs"
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"default": {
"types": "./dist/browser.d.ts",
"import": "./dist/browser.mjs",
"require": "./dist/browser.cjs"
"import": {
"types": "./dist/browser.d.mts",
"default": "./dist/browser.mjs"
},
"require": {
"types": "./dist/browser.d.cts",
"default": "./dist/browser.cjs"
}
}
},
"./browser": {
"types": "./dist/browser.d.ts",
"import": "./dist/browser.mjs",
"require": "./dist/browser.cjs"
"import": {
"types": "./dist/browser.d.mts",
"default": "./dist/browser.mjs"
},
"require": {
"types": "./dist/browser.d.cts",
"default": "./dist/browser.cjs"
}
},
"./basic": {
"node": {
"types": "./dist/basic.d.ts",
"import": "./dist/basic.mjs",
"require": "./dist/basic.cjs"
"import": {
"types": "./dist/basic.d.mts",
"default": "./dist/basic.mjs"
},
"require": {
"types": "./dist/basic.d.cts",
"default": "./dist/basic.cjs"
}
},
"default": {
"types": "./dist/browser.d.ts",
"import": "./dist/browser.mjs",
"require": "./dist/browser.cjs"
"import": {
"types": "./dist/browser.d.mts",
"default": "./dist/browser.mjs"
},
"require": {
"types": "./dist/browser.d.cts",
"default": "./dist/browser.cjs"
}
}
},
"./core": {
"types": "./dist/core.d.ts",
"import": "./dist/core.mjs",
"require": "./dist/core.cjs"
"import": {
"types": "./dist/core.d.mts",
"default": "./dist/core.mjs"
},
"require": {
"types": "./dist/core.d.cts",
"default": "./dist/core.cjs"
}
},
"./utils": {
"types": "./dist/utils.d.ts",
"import": "./dist/utils.mjs",
"require": "./dist/utils.cjs"
"import": {
"types": "./dist/utils.d.mts",
"default": "./dist/utils.mjs"
},
"require": {
"types": "./dist/utils.d.cts",
"default": "./dist/utils.cjs"
}
}
},
"main": "./lib/index.cjs",
Expand Down

0 comments on commit 18bc852

Please sign in to comment.