From e592ba1d134faa93bf2dd0261fdee0654fe26e2a Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 27 Mar 2023 11:51:50 +0200 Subject: [PATCH] build(simulator): add some scripts to clean build artefacts MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 .", -- 2.34.1