feat: add exports fields to sub packages (#10650)

This commit is contained in:
neverland 2022-05-29 21:48:59 +08:00 committed by GitHub
parent 79dfc4b8cb
commit 3606f48003
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 0 deletions

View File

@ -5,6 +5,12 @@
"main": "dist/index.cjs.js",
"module": "dist/index.esm.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.esm.mjs",
"require": "./dist/index.cjs.js"
}
},
"files": [
"dist"
],

View File

@ -5,6 +5,12 @@
"main": "dist/index.cjs.js",
"module": "dist/index.esm.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.esm.mjs",
"require": "./dist/index.cjs.js"
}
},
"sideEffects": false,
"files": [
"dist"

View File

@ -5,6 +5,12 @@
"main": "dist/index.cjs.js",
"module": "dist/index.esm.mjs",
"typings": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.esm.mjs",
"require": "./dist/index.cjs.js"
}
},
"sideEffects": false,
"files": [
"dist"