Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(package): update exports to import/require #2366

Merged
merged 11 commits into from
Sep 28, 2022
Next Next commit
fix(package): update exports to import/require
  • Loading branch information
joshblack committed Sep 23, 2022
commit 5c93c97b687d1cb2b1e7d80242dc1d8a568d5d8d
13 changes: 5 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,23 @@
"module": "lib-esm/index.js",
"exports": {
".": {
"node": "./lib/index.js",
"require": "./lib/index.js",
"default": "./lib-esm/index.js"
"import": "./lib-esm/index.js"
},
"./drafts": {
"node": "./lib/drafts/index.js",
"require": "./lib/drafts/index.js",
"default": "./lib-esm/drafts/index.js"
"import": "./lib-esm/drafts/index.js"
},
"./deprecated": {
"node": "./lib/deprecated/index.js",
"require": "./lib/deprecated/index.js",
"default": "./lib-esm/deprecated/index.js"
"import": "./lib-esm/deprecated/index.js"
},
"./lib-esm/*": {
"node": [
"require": [
"./lib/*.js",
"./lib/*/index.js"
],
"default": [
"import": [
"./lib-esm/*.js",
"./lib-esm/*/index.js"
]
Expand Down