From 717272526afbf0e0083f4c07bd4cfda224a8c69f Mon Sep 17 00:00:00 2001 From: Jari Kolehmainen Date: Wed, 1 Feb 2023 14:44:39 +0200 Subject: [PATCH] use rimraf Signed-off-by: Jari Kolehmainen --- package.json | 3 ++- packages/core/package.json | 2 +- packages/ensure-binaries/package.json | 2 +- packages/extension-api/package.json | 2 +- packages/node-fetch/package.json | 2 +- packages/open-lens/package.json | 6 +++--- packages/release-tool/package.json | 2 +- packages/semver/package.json | 2 +- yarn.lock | 5 +++++ 9 files changed, 16 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 076224435d..32c5d341ae 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "devDependencies": { "adr": "^1.4.3", "cross-env": "^7.0.3", - "lerna": "^6.4.1" + "lerna": "^6.4.1", + "rimraf": "^4.1.2" } } diff --git a/packages/core/package.json b/packages/core/package.json index a549196ce3..60531c1432 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -51,7 +51,7 @@ "author": "OpenLens Authors ", "scripts": { "build": "cross-env NODE_ENV=production yarn run webpack --config webpack/library-bundle.ts", - "clean": "rm -rf dist static/build", + "clean": "rimraf dist static/build", "prepare:dev": "cross-env NODE_ENV=development yarn run webpack --config webpack/library-bundle.ts --progress", "dev": "cross-env NODE_ENV=development yarn run webpack --config webpack/library-bundle.ts --watch", "test:unit": "jest --testPathIgnorePatterns integration", diff --git a/packages/ensure-binaries/package.json b/packages/ensure-binaries/package.json index c7e209c4ce..181a69e12b 100644 --- a/packages/ensure-binaries/package.json +++ b/packages/ensure-binaries/package.json @@ -5,7 +5,7 @@ "main": "dist/index.mjs", "license": "MIT", "scripts": { - "clean": "rm -rf dist/", + "clean": "rimraf dist/", "build": "swc ./src/index.ts -o ./dist/index.mjs", "prepare:dev": "npm run build" }, diff --git a/packages/extension-api/package.json b/packages/extension-api/package.json index 58b39dd9a2..540f072875 100644 --- a/packages/extension-api/package.json +++ b/packages/extension-api/package.json @@ -22,7 +22,7 @@ "scripts": { "build": "yarn run webpack --config webpack/extensions.ts", "build:docs": "yarn run typedoc", - "clean": "rm -rf dist/", + "clean": "rimraf dist/", "prepare:dev": "yarn run build" }, "dependencies": { diff --git a/packages/node-fetch/package.json b/packages/node-fetch/package.json index 7a9e3ebc00..6aad104369 100644 --- a/packages/node-fetch/package.json +++ b/packages/node-fetch/package.json @@ -14,7 +14,7 @@ "dist" ], "scripts": { - "clean": "rm -rf dist/", + "clean": "rimraf dist/", "build": "webpack --config webpack.ts", "lint": "exit 0", "prepare": "npm run build", diff --git a/packages/open-lens/package.json b/packages/open-lens/package.json index 5da3150b46..e6f97f90a5 100644 --- a/packages/open-lens/package.json +++ b/packages/open-lens/package.json @@ -18,17 +18,17 @@ "license": "MIT", "author": "OpenLens Authors ", "scripts": { - "clean": "rm -rf binaries/ dist/ static/build", + "clean": "rimraf binaries/ dist/ static/build", "build": "npm run compile", "postbuild": "npm run build:tray-icons && npm run download:binaries", "build:app": "electron-builder --publish onTag", "prebuild:app": "run-script-os", "prebuild:app:default": "exit 0", - "prebuild:app:win32": "rm -rf node_modules/win-ca/pem", + "prebuild:app:win32": "rimraf node_modules/win-ca/pem", "build:dir": "npm run compile && electron-builder --dir", "compile": "cross-env NODE_ENV=production webpack --config webpack/webpack.ts --progress", "postcompile": "npm run build:tray-icons && npm run download:binaries", - "predev": "rm -rf static/build/ && npm run build:tray-icons && npm run download:binaries", + "predev": "rimraf static/build/ && npm run build:tray-icons && npm run download:binaries", "dev": "concurrently -i -k \"yarn run dev-run -C\" yarn:dev:*", "dev-run": "nodemon --watch ./static/build/main.js --exec \"electron --remote-debugging-port=9223 --inspect .\"", "dev:main": "cross-env NODE_ENV=development webpack --config webpack/main.ts --progress --watch", diff --git a/packages/release-tool/package.json b/packages/release-tool/package.json index 44c2a6e38b..111119632a 100644 --- a/packages/release-tool/package.json +++ b/packages/release-tool/package.json @@ -6,7 +6,7 @@ "license": "MIT", "private": true, "scripts": { - "clean": "rm -rf dist/", + "clean": "rimraf dist/", "build": "swc ./src/index.ts -o ./dist/index.mjs", "create-release-pr": "node ./dist/index.mjs" }, diff --git a/packages/semver/package.json b/packages/semver/package.json index b9caa31469..e7070eb4dc 100644 --- a/packages/semver/package.json +++ b/packages/semver/package.json @@ -6,7 +6,7 @@ "license": "MIT", "private": true, "scripts": { - "clean": "rm -rf dist/", + "clean": "rimraf dist/", "build": "swc ./src/index.ts -o ./dist/index.mjs" }, "dependencies": { diff --git a/yarn.lock b/yarn.lock index 5ce4003ada..27adff4986 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4348,6 +4348,11 @@ rimraf@^3.0.0, rimraf@^3.0.2: dependencies: glob "^7.1.3" +rimraf@^4.1.2: + version "4.1.2" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-4.1.2.tgz#20dfbc98083bdfaa28b01183162885ef213dbf7c" + integrity sha512-BlIbgFryTbw3Dz6hyoWFhKk+unCcHMSkZGrTFVAx2WmttdBSonsdtRlwiuTbDqTKr+UlXIUqJVS4QT5tUzGENQ== + run-async@^2.4.0: version "2.4.1" resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.4.1.tgz#8440eccf99ea3e70bd409d49aab88e10c189a455"