From: Jérôme Benoit Date: Mon, 27 Mar 2023 09:51:50 +0000 (+0200) Subject: build(simulator): add some scripts to clean build artefacts X-Git-Tag: v1.2.0-1~4 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=e592ba1d134faa93bf2dd0261fdee0654fe26e2a;p=e-mobility-charging-stations-simulator.git build(simulator): add some scripts to clean build artefacts Signed-off-by: Jérôme Benoit --- diff --git a/package.json b/package.json index 90764d10..e8ff6b63 100644 --- a/package.json +++ b/package.json @@ -52,9 +52,11 @@ "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 .",