From ee2474d7e003e95b15d7ba75291efd61d731ced6 Mon Sep 17 00:00:00 2001 From: Mert Sincan Date: Fri, 20 Dec 2024 11:50:03 +0000 Subject: [PATCH] Refactor --- .husky/post-checkout | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.husky/post-checkout b/.husky/post-checkout index 009aaada4e..b1bfc2074d 100644 --- a/.husky/post-checkout +++ b/.husky/post-checkout @@ -3,5 +3,5 @@ # Discard all changes and untracked files git reset --hard HEAD && git clean -fd -# Run the setup script +# Run the clean script npm run clean || exit 1 diff --git a/package.json b/package.json index 0d1df6a63a..0e2e027859 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ }, "scripts": { "setup": "pnpm run clean && pnpm run init", - "clean": "rm -rf **/node_modules **/dist **/.angular ./pnpm-lock.yaml", + "clean": "npx rimraf **/node_modules **/dist **/.angular ./pnpm-lock.yaml", "init": "pnpm install && husky", "link": "pnpm --filter './packages/*' dev:link", "release": "pnpm run build && pnpm recursive publish --filter './packages/*' --no-git-checks --report-summary --tag v18-stable",