From 22727001e7c54421eed40f6f2ad01ee9418b578a Mon Sep 17 00:00:00 2001 From: Allen Hill Date: Tue, 26 Nov 2024 12:53:32 -0800 Subject: [PATCH] Simplify build, build:prod, and clean:all scripts --- webio_jupyter_extension/package.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/webio_jupyter_extension/package.json b/webio_jupyter_extension/package.json index 6d54cca..6df04bb 100644 --- a/webio_jupyter_extension/package.json +++ b/webio_jupyter_extension/package.json @@ -18,8 +18,8 @@ "directory": "webio_jupyter_extension" }, "scripts": { - "build": "yarn build:lib && yarn build:nbextension && yarn build:labextension:dev", - "build:prod": "yarn run clean && yarn run build:lib && yarn run build:labextension", + "build": "NODE_ENV=development npm-run-all build:lib:dev build:nbextension build:labextension:dev", + "build:prod": "NODE_ENV=production npm-run-all clean:all build:lib build:nbextension build:labextension", "build:nbextension": "webpack -c webpack.nbextension.js", "build:labextension": "jupyter labextension build .", "build:labextension:dev": "jupyter labextension build --development True .", @@ -27,7 +27,8 @@ "clean": "yarn run clean:lib", "clean:lib": "rimraf lib dist tsconfig.tsbuildinfo", "clean:labextension": "rimraf webio_jupyter_extension/labextension", - "clean:all": "yarn run clean:lib && yarn run clean:labextension", + "clean:nbextension": "rimraf webio_jupyter_extension/nbextension", + "clean:all": "npm-run-all clean:lib clean:labextension clean:nbextension", "eslint": "eslint . --ext .ts,.tsx --fix", "eslint:check": "eslint . --ext .ts,.tsx", "install:extension": "yarn run build",