From 5090ea66c38b55311674e419897fa5884d7c78d5 Mon Sep 17 00:00:00 2001 From: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com> Date: Mon, 22 Feb 2021 14:21:17 +0530 Subject: [PATCH] chore: update npm run scripts (#41221) --- package.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 3261ef57c7..f19f551942 100644 --- a/package.json +++ b/package.json @@ -5,12 +5,13 @@ "scripts": { "audit": "npm audit & lerna exec --no-bail 'echo $LERNA_PACKAGE_NAME & npm audit'", "audit:fix": "npm audit fix & lerna exec 'echo $LERNA_PACKAGE_NAME & npm audit fix'", - "build": "npm-run-all ensure-env -p build:*", + "prebuild": "npm run ensure-env", + "build": "npm-run-all -p build:*", "build:client": "cd ./client && npm run build", "build:server": "cd ./api-server && npm run build", "build:curriculum": "cd ./curriculum && npm run build", "bootstrap": "lerna bootstrap --ci", - "clean": "npm-run-all clean:client clean:server clean:packages", + "clean": "npm-run-all clean:client clean:server clean:packages clean:root-deps", "clean-and-develop": "npm run clean && npm ci && npm run develop", "clean:root-deps": "shx rm -rf node_modules", "clean:packages": "lerna clean -y", @@ -26,7 +27,8 @@ "cypress:dev:watch": "npm run cypress -- open", "cypress:prd:run": "npm run cypress -- run", "cypress:prd:watch": "npm run cypress -- open", - "develop": "npm-run-all ensure-env build:curriculum -p develop:*", + "predevelop": "npm run ensure-env", + "develop": "npm-run-all build:curriculum -p develop:*", "develop:client": "cd ./client && npm run develop", "develop:server": "cd ./api-server && npm run develop", "docs:serve": "docsify serve ./docs -o --port 3200",