diff --git a/client/package.json b/client/package.json index 557e46cdc0..aa3a7b7bf6 100644 --- a/client/package.json +++ b/client/package.json @@ -143,5 +143,8 @@ "ios", "osx" ] + }, + "scripts": { + "clean": "rm -rf build output node_modules www platforms plugins" } } diff --git a/package.json b/package.json index 5699358bc1..42def6e575 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "action:help": "npm run action list", "action:list": "npm run action list", "action": "node ./src/build/run_action.mjs", - "clean": "rimraf client/build client/output node_modules client/node_modules client/www client/platforms client/plugins third_party/jsign/*.jar && go run github.com/go-task/task/v3/cmd/task clean", + "clean": "npm run clean --workspaces && rm -rf output node_modules third_party/jsign/*.jar && go run github.com/go-task/task/v3/cmd/task clean", "format:all": "prettier --write \"**/*.{cjs,mjs,html,js,json,md,ts}\"", "format": "pretty-quick --staged --pattern \"**/*.{cjs,mjs,html,js,json,md,ts}\"", "lint:ts": "eslint --ext ts,mjs client/src", diff --git a/server_manager/package.json b/server_manager/package.json index e3f782ce99..fcdcd93835 100644 --- a/server_manager/package.json +++ b/server_manager/package.json @@ -110,5 +110,8 @@ "supports-color": "3.1.2", "type-detect": "1.0.0" }, - "license": "Apache" + "license": "Apache", + "scripts": { + "clean": "rm -rf node_modules install_scripts/do_install_script.ts install_scripts/gcp_install_script.ts" + } }