add types condition to the front of some exports

This commit is contained in:
Mateusz Burzyński 2023-05-01 12:36:32 +02:00
parent 0698449d50
commit c23495f6ab
2 changed files with 8 additions and 2 deletions

View File

@ -33,6 +33,7 @@
"types": "./index.d.ts", "types": "./index.d.ts",
"exports": { "exports": {
".": { ".": {
"types": "./index.d.ts",
"module": "./index.mjs", "module": "./index.mjs",
"import": "./index.mjs", "import": "./index.mjs",
"require": "./index.js", "require": "./index.js",
@ -40,12 +41,14 @@
"default": "./index.js" "default": "./index.js"
}, },
"./index": { "./index": {
"types": "./index.d.ts",
"module": "./index.mjs", "module": "./index.mjs",
"import": "./index.mjs", "import": "./index.mjs",
"require": "./index.js", "require": "./index.js",
"default": "./index.js" "default": "./index.js"
}, },
"./index.js": { "./index.js": {
"types": "./index.d.ts",
"module": "./index.mjs", "module": "./index.mjs",
"import": "./index.mjs", "import": "./index.mjs",
"require": "./index.js", "require": "./index.js",

View File

@ -33,16 +33,19 @@
"sideEffects": false, "sideEffects": false,
"exports": { "exports": {
".": { ".": {
"types": "./index.d.ts",
"import": "./index.mjs", "import": "./index.mjs",
"require": "./index.js", "require": "./index.js",
"default": "./index.js" "default": "./index.js"
}, },
"./index": { "./index": {
"types": "./index.d.ts",
"import": "./index.mjs", "import": "./index.mjs",
"require": "./index.js", "require": "./index.js",
"default": "./index.js" "default": "./index.js"
}, },
"./index.js": { "./index.js": {
"types": "./index.d.ts",
"import": "./index.mjs", "import": "./index.mjs",
"require": "./index.js", "require": "./index.js",
"default": "./index.js" "default": "./index.js"