fix: package.json fields fixes for old jest-resolver versions (#11033)

This commit is contained in:
Dan Onoshko 2023-01-05 19:28:07 +04:00 committed by GitHub
parent fd505acced
commit 2cde2bf41d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 7 deletions

View File

@ -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"
}

View File

@ -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"
}

View File

@ -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",