fix: add more exports types (#13498)

This commit is contained in:
三咲智子 Kevin Deng 2023-07-07 02:48:28 +08:00 committed by GitHub
parent 75ab3af851
commit 3ab31b4d60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,15 +24,36 @@
"import": "./es/index.mjs",
"require": "./lib/index.js"
},
"./es": "./es/index.mjs",
"./lib": "./lib/index.js",
"./es/*.mjs": "./es/*.mjs",
"./es/*": {
"types": "./es/*/index.d.ts",
"./es": {
"types": "./es/index.d.ts",
"import": "./es/index.mjs"
},
"./lib": {
"types": "./lib/index.d.ts",
"require": "./lib/index.js"
},
"./es/*.mjs": {
"types": "./es/*.d.ts",
"import": "./es/*.mjs"
},
"./lib/*.js": "./lib/*.js",
"./lib/*": "./lib/*.js",
"./es/*": {
"types": [
"./es/*.d.ts",
"./es/*/index.d.ts"
],
"import": "./es/*.mjs"
},
"./lib/*.js": {
"types": "./lib/*.d.ts",
"require": "./lib/*.js"
},
"./lib/*": {
"types": [
"./lib/*.d.ts",
"./lib/*/index.d.ts"
],
"require": "./lib/*.js"
},
"./*": "./*"
},
"unpkg": "dist/index.full.js",