Skip to content

Commit b5b52f0

Browse files
committed
Make sure dist is cleared before build
1 parent c7c5ac6 commit b5b52f0

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
@@ -16,9 +16,10 @@
1616
"scripts": {
1717
"prod": "yarn run build",
1818
"chain": "bash scripts/init_chain_internal.sh",
19-
"build": "yarn run build-dist && yarn run tslint && tspath -f",
19+
"build": "yarn run clean && yarn run build-dist && yarn run tslint && tspath -f",
2020
"build-ts": "tsc -p tsconfig.json",
2121
"build-dist": "tsc -p tsconfig.dist.json",
22+
"clean": "rm -rf dist",
2223
"test": "jest --runInBand",
2324
"test:verbose": "jest --runInBand --silent=false",
2425
"test:watch": "jest --watch --runInBand",

0 commit comments

Comments
 (0)