Fix types export for Typescript v5 module resolution options (#9787)

This commit is contained in:
Álvaro Mondéjar 2023-10-28 18:22:28 +02:00 committed by GitHub
parent 8c31e1a1c4
commit e648a5f8df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,16 +12,40 @@
"types": "index.d.ts", "types": "index.d.ts",
"exports": { "exports": {
".": { ".": {
"module": "./index.mjs", "import": {
"import": "./index.mjs", "types": "./index.d.ts",
"require": "./index.js", "default": "./index.mjs"
"default": "./index.js" },
"module": {
"types": "./index.d.ts",
"default": "./index.mjs"
},
"require": {
"types": "./index.d.ts",
"default": "./index.js"
},
"default": {
"types": "./index.d.ts",
"default": "./index.js"
}
}, },
"./icons": { "./icons": {
"module": "./index.mjs", "import": {
"import": "./index.mjs", "types": "./index.d.ts",
"require": "./index.js", "default": "./index.mjs"
"default": "./index.js" },
"module": {
"types": "./index.d.ts",
"default": "./index.mjs"
},
"require": {
"types": "./index.d.ts",
"default": "./index.js"
},
"default": {
"types": "./index.d.ts",
"default": "./index.js"
}
}, },
"./icons/*": [ "./icons/*": [
"./icons/*" "./icons/*"