Skip to content

Commit

Permalink
fix: package.json fields fixes for old jest-resolver versions (#11033)
Browse files Browse the repository at this point in the history
  • Loading branch information
dangreen committed Jan 5, 2023
1 parent fd505ac commit 2cde2bf
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
10 changes: 7 additions & 3 deletions auto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
"private": true,
"description": "Auto registering package. Exists to support bundlers without exports support such as webpack 4.",
"type": "module",
"main": "auto.js",
"exports": "./auto.js",
"types": "auto.d.ts"
"main": "./auto.cjs",
"exports": {
"types": "./auto.d.ts",
"import": "./auto.js",
"require": "./auto.cjs"
},
"types": "./auto.d.ts"
}
10 changes: 7 additions & 3 deletions helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
"private": true,
"description": "Helpers package. Exists to support bundlers without exports support such as webpack 4.",
"type": "module",
"main": "helpers.js",
"exports": "./helpers.js",
"types": "helpers.d.ts"
"main": "./helpers.cjs",
"exports": {
"types": "./helpers.d.ts",
"import": "./helpers.js",
"require": "./helpers.cjs"
},
"types": "./helpers.d.ts"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
],
"jsdelivr": "./dist/chart.umd.js",
"unpkg": "./dist/chart.umd.js",
"main": "./dist/chart.js",
"main": "./dist/chart.cjs",
"exports": {
".": {
"types": "./dist/types.d.ts",
Expand Down

0 comments on commit 2cde2bf

Please sign in to comment.