Skip to content

Commit 4670159

Browse files
author
Joona Ojapalo
committed
chore: add clean script to package.json
1 parent 139bd1e commit 4670159

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
],
1414
"scripts": {
1515
"setup": "yarn install && yarn build-workspaces && yarn node14-patch",
16+
"clean": "yarn clean:generated yarn && clean:node_modules",
17+
"clean:node_modules": "lerna run clean && rm -rf node_modules",
18+
"clean:generated": "find app -type d -name __generated__ | xargs rm -r",
1619
"static": "mkdir -p _static/js; mkdir -p _static/css; cp -r static/* _static",
1720
"win-static": "xcopy static\\* _static /e /s /y /i& if not exist _static\\js mkdir _static\\js& if not exist _static\\css mkdir _static\\css",
1821
"prebuild": "yarn run static && yarn run relay",

0 commit comments

Comments
 (0)