Skip to content

Commit a2f1e09

Browse files
committed
rename prebuild to clean
npm sometimes fail to run prebuild before build. Using clean makes it explicit
1 parent dc48b0b commit a2f1e09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"main": "dist/index.js",
77
"module": "dist-esm/index.js",
88
"scripts": {
9-
"prebuild": "rimraf dist/ dist-esm/",
10-
"build": "npm run build:cjs && npm run build:es",
9+
"clean": "rimraf dist/ dist-esm/",
10+
"build": "npm run clean && npm run build:cjs && npm run build:es",
1111
"build:cjs": "tsc -p tsconfig.json",
1212
"build:es": "tsc -p tsconfig-esm.json",
1313
"postbuild": "npm run bundle",

0 commit comments

Comments
 (0)