build(simulator): add some scripts to clean build artefacts
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 27 Mar 2023 09:51:50 +0000 (11:51 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 27 Mar 2023 09:51:50 +0000 (11:51 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
package.json

index 90764d10edf3c31b55bdb83d14038c322cc4df90..e8ff6b638cd6ea5677a271c5dfe4ec9a50a740db 100644 (file)
     "start:heapprofiler": "cross-env NODE_ENV=production clinic heapprofiler -- node -r source-map-support/register dist/start.mjs",
     "rollup": "pnpm run build-requirements && rollup --config",
     "build": "pnpm run rollup",
-    "build:cf": "npx rimraf node_modules && npx cross-env SKIP_PREINSTALL=1 npm install && pnpm run rollup",
+    "build:cf": "pnpm run clean:node_modules && npx cross-env SKIP_PREINSTALL=1 npm install && pnpm run rollup",
     "build:dev": "pnpm run rollup -- --environment BUILD:development",
     "build:dev:watch": "pnpm run rollup -- --environment BUILD:development --watch",
+    "clean:dist": "npx rimraf dist",
+    "clean:node_modules": "npx rimraf node_modules",
     "lint": "cross-env TIMING=1 eslint --cache --ext .js,.cjs,.mjs,.ts src",
     "lint:fix": "cross-env TIMING=1 eslint --cache --fix --ext .js,.cjs,.mjs,.ts src",
     "format": "prettier --cache --write .",