Skip to content

Commit

Permalink
change exports etc
Browse files Browse the repository at this point in the history
  • Loading branch information
kangzj committed Jan 9, 2025
1 parent fea4476 commit 4f66d62
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions projects/js-packages/charts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,26 @@
"build:mjs": "webpack --config webpack-mjs.cjs --mode production",
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types"
},
"main": "./dist/cjs/index.js",
"module": "./dist/mjs/index.js",
"types": "./dist/types/index.d.ts",
"sideEffects": [
"*.css",
"*.scss"
],
"exports": {
".": {
"import": "./dist/mjs/index.js",
"require": "./dist/cjs/index.cjs",
"types": "./dist/types/*.d.ts"
},
"./components/*": {
"import": "./dist/mjs/components/*/index.js",
"require": "./dist/cjs/components/*/index.cjs",
"types": "./dist/types/*.d.ts"
},
"./style.css": "./dist/cjs/style.css"
},
"dependencies": {
"@babel/runtime": "7.26.0",
"@react-spring/web": "9.7.3",
Expand Down Expand Up @@ -76,25 +96,5 @@
"peerDependencies": {
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0"
},
"exports": {
".": {
"import": "./dist/mjs/index.js",
"require": "./dist/cjs/index.cjs",
"types": "./dist/mjs/index.d.ts"
},
"./components/*": {
"import": "./dist/mjs/components/*/index.js",
"require": "./dist/cjs/components/*/index.cjs",
"types": "./dist/mjs/components/*/index.d.ts"
},
"./style.css": "./dist/style.css"
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"sideEffects": [
"*.css",
"*.scss"
]
}
}

0 comments on commit 4f66d62

Please sign in to comment.