Skip to content

Commit

Permalink
Switch back to "exports" of require & import, with separate "types"
Browse files Browse the repository at this point in the history
This effectively reverts the main change in
#259
with a goal of supporting NextJS again, to resolve
#264
  • Loading branch information
sjdemartini committed Sep 15, 2024
1 parent fd0c053 commit fc784a5
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,24 @@
"module": "dist/esm/index.js",
"exports": {
".": {
"types": "./dist/cjs/index.d.ts",
"module": "./dist/esm/index.js",
"default": "./dist/cjs/index.js"
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
},
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
}
},
"./icons": {
"types": "./dist/cjs/icons/index.d.ts",
"module": "./dist/esm/icons/index.js",
"default": "./dist/cjs/icons/index.js"
"require": {
"types": "./dist/cjs/icons/index.d.ts",
"default": "./dist/cjs/icons/index.js"
},
"import": {
"types": "./dist/esm/icons/index.d.ts",
"default": "./dist/esm/icons/index.js"
}
}
},
"typesVersions": {
Expand Down

0 comments on commit fc784a5

Please sign in to comment.