Skip to content

Commit

Permalink
Specify CJS vs ESM exports for @nivo/colors package
Browse files Browse the repository at this point in the history
  • Loading branch information
D-Maher committed Feb 20, 2023
1 parent 1d8dcf4 commit b0a29a2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/colors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,20 @@
"main": "./dist/nivo-colors.cjs.js",
"module": "./dist/nivo-colors.es.js",
"typings": "./dist/types/index.d.ts",
"exports": {
".": {
"require": "./dist/nivo-colors.cjs.js",
"import": "./dist/nivo-colors.es.js"
},
"./dist/nivo-colors.cjs.js": {
"require": "./dist/nivo-colors.cjs.js",
"default": "./dist/nivo-colors.cjs.js"
},
"./dist/nivo-colors.es.js": {
"import": "./dist/nivo-colors.es.js",
"default": "./dist/nivo-colors.es.js"
}
},
"files": [
"README.md",
"LICENSE.md",
Expand Down

0 comments on commit b0a29a2

Please sign in to comment.