From 46701590910fca91bd5abf3720f9b365856e9d86 Mon Sep 17 00:00:00 2001 From: Joona Ojapalo Date: Fri, 26 Aug 2022 09:31:27 +0300 Subject: [PATCH] chore: add clean script to package.json --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index c0fdccbe17..b2229b5d79 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,9 @@ ], "scripts": { "setup": "yarn install && yarn build-workspaces && yarn node14-patch", + "clean": "yarn clean:generated yarn && clean:node_modules", + "clean:node_modules": "lerna run clean && rm -rf node_modules", + "clean:generated": "find app -type d -name __generated__ | xargs rm -r", "static": "mkdir -p _static/js; mkdir -p _static/css; cp -r static/* _static", "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", "prebuild": "yarn run static && yarn run relay",