Skip to content

Commit 7f3c25a

Browse files
committed
build: ensure the build folder is clean
1 parent c463614 commit 7f3c25a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"bin": "./build/src/index.js",
77
"main": "index.js",
88
"scripts": {
9-
"build": "tsc && node --experimental-strip-types --no-warnings=ExperimentalWarning scripts/post-build.ts && rollup -c rollup.config.mjs",
9+
"clean": "node -e \"require('fs').rmSync('build', {recursive: true, force: true})\"",
10+
"build": "npm run clean && tsc && node --experimental-strip-types --no-warnings=ExperimentalWarning scripts/post-build.ts && rollup -c rollup.config.mjs",
1011
"typecheck": "tsc --noEmit",
1112
"format": "eslint --cache --fix . && prettier --write --cache .",
1213
"check-format": "eslint --cache . && prettier --check --cache .;",

0 commit comments

Comments
 (0)