Skip to content

Commit

Permalink
fix(package): avoid subpath pattern in exports (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi authored Oct 1, 2021
1 parent e19a62f commit 5ca54b8
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,23 @@
"import": "./esm/index.mjs",
"default": "./index.js"
},
"./*": {
"types": "./*.d.ts",
"module": "./esm/*.js",
"import": "./esm/*.mjs",
"default": "./*.js"
"./vanilla": {
"types": "./vanilla.d.ts",
"module": "./esm/vanilla.js",
"import": "./esm/vanilla.mjs",
"default": "./vanilla.js"
},
"./utils": {
"types": "./utils.d.ts",
"module": "./esm/utils.js",
"import": "./esm/utils.mjs",
"default": "./utils.js"
},
"./macro": {
"types": "./macro.d.ts",
"module": "./esm/macro.js",
"import": "./esm/macro.mjs",
"default": "./macro.js"
}
},
"files": [
Expand All @@ -52,7 +64,7 @@
"copy": "shx cp -r dist/src/* dist/esm && shx mv dist/src/* dist && shx rm -rf dist/{src,tests} && downlevel-dts dist dist/ts3.4 && shx cp package.json readme.md LICENSE dist && json -I -f dist/package.json -e \"this.private=false; this.devDependencies=undefined; this.optionalDependencies=undefined; this.scripts=undefined; this.prettier=undefined; this.jest=undefined; this['lint-staged']=undefined;\""
},
"engines": {
"node": ">=12"
"node": ">=12.7.0"
},
"prettier": {
"semi": false,
Expand Down

0 comments on commit 5ca54b8

Please sign in to comment.