Skip to content

Commit d7fc7cf

Browse files
committed
Add postbuild
1 parent 59b80b7 commit d7fc7cf

File tree

2 files changed

+950
-572
lines changed

2 files changed

+950
-572
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"prebuild": "npm run clean && npm run lint",
3939
"build:esm": "tsc --target es2020 --outDir esm",
4040
"build:es5": "tsc --target es2020 --module commonjs --outDir dist",
41+
"postbuild:es5": "echo '{\"type\": \"commonjs\"}' > dist/package.json",
4142
"build": "npm run build:esm && npm run build:es5",
4243
"postbuild": "webpack",
4344
"preversion": "npm run lint && npm test run && npm run build",

0 commit comments

Comments
 (0)