Skip to content

Commit 6988a03

Browse files
authored
Add npm run clean script (#3846)
1 parent 68bd638 commit 6988a03

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
"install-hooks": "mookme init --only-hook --skip-types-selection",
1010
"lint": "lerna run lint",
1111
"lint:fix": "lerna run lint:fix",
12+
"clean": "rm -rf packages/web/build* && cd packages/mobile && npm run clean:auto && cd ../..",
13+
"clean:modules": "rm -rf node_modules && rm -rf packages/*/node_modules",
1214
"WEB========================================": "",
1315
"web:dev": "cd packages/web && npm run start:dev",
1416
"web:stage": "cd packages/web && npm run start:stage",

packages/mobile/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"typecheck:watch": "tsc --watch",
3939
"typecheck:trace": "tsc --generateTrace tsc_trace",
4040
"clean": "react-native-clean-project",
41+
"clean:auto": "react-native clean-project-auto",
4142
"preinstall": "npm-force-resolutions",
4243
"postinstall": "patch-package",
4344
"verify": "concurrently \"npm:typecheck\" \"npm:lint:fix\""

0 commit comments

Comments
 (0)