Skip to content

Commit

Permalink
fix(wildcard): allow wildcard exports for older projects
Browse files Browse the repository at this point in the history
This will allow projects using CommonJS and moduleResolution: node to traverse the output paths manually. While not encouraged, it helps other projects transition.
  • Loading branch information
dtfiedler committed Sep 18, 2023
1 parent ff851f8 commit 1aa0827
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@
"website": "https://ardrive.io"
},
"exports": {
".": {
"import": "./lib/node/index.js",
"require": "./lib/node/index.js",
"types": "./lib/node/index.d.ts",
"browser": "./bundles/web.bundle.min.js"
},
"./node": {
"import": "./lib/node/index.js",
"require": "./lib/node/index.js",
Expand All @@ -36,6 +30,11 @@
"require": "./lib/web/index.js",
"types": "./lib/web/index.d.ts",
"browser": "./bundles/web.bundle.min.js"
},
"./*": {
"import": "./*.js",
"require": "./*.js",
"types": "./*.d.ts"
}
},
"engines": {
Expand Down

0 comments on commit 1aa0827

Please sign in to comment.