From 7d6368adb40c9212dc689b221c328bf3ab44000b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julio=20Mu=C3=B1oz?= Date: Thu, 19 Sep 2024 17:42:14 +0200 Subject: [PATCH] Fix scripts.clean:all --- package.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 314b37bbf..15f4d78b5 100644 --- a/package.json +++ b/package.json @@ -57,9 +57,10 @@ "build": "yarn clean:build && NODE_ENV=production lerna run build --stream", "build:watch": "lerna run build:watch --stream --parallel", "build:clean": "yarn clean:all && yarn install && yarn build && yarn test", - "clean:all": "yarn clean:node_modules && yarn clean:build", - "clean:node_modules": "rm -rf ./node_modules && lerna exec -- rm -rf ./node_modules ", - "clean:build": "rm -rf ./coverage ./.nyc_output ./reports && lerna exec -- rm -rf ./dist ./coverage", + "clean:all": "yarn clean:node_modules && yarn clean:build && yarn clean:coverage", + "clean:node_modules": "rm -rf node_modules && for d in packages/*/node_modules; do rm -rf $d; done", + "clean:build": "rm -rf dist && for d in packages/*/dist; do rm -rf $d; done", + "clean:coverage": "rm -rf coverage ./.nyc_output ./reports && for d in packages/*/coverage; do rm -rf $d; done", "lint": "lerna run lint --stream", "lint:fix": "lerna run --parallel lint:fix", "test": "lerna run lint --stream && lerna run test --stream", @@ -89,4 +90,4 @@ "prettier --write" ] } -} \ No newline at end of file +}