Skip to content

Commit b84694f

Browse files
committed
chore: Add rimraf to clean dist before builds
1 parent 4cd6f3a commit b84694f

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

react-nativescript/package-lock.json

Lines changed: 14 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

react-nativescript/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"setup": "npm install && npm run pp",
1414
"pp": "patch-package",
1515
"prettier": "prettier --print-width 120 --tab-width 4 --trailing-comma es5 --end-of-line lf --write \"src/**/*.ts\"",
16-
"build": "tsc --project ./tsconfig.json",
16+
"build": "node node_modules/.bin/rimraf ./dist/* && tsc --project ./tsconfig.json",
1717
"dev": "tsc --watch --project ./tsconfig.json",
1818
"prepare": "npm run build",
1919
"test": "echo \"Error: no test specified\" && exit 1"
@@ -49,6 +49,7 @@
4949
"patch-package": "^6.2.2",
5050
"prettier": "1.18.2",
5151
"react": "^16.13.1",
52+
"rimraf": "^3.0.2",
5253
"typescript": "~4.0.3"
5354
}
5455
}

0 commit comments

Comments
 (0)