From 45d157a25e88681ad7a9324fbb2495add4f4b9dc Mon Sep 17 00:00:00 2001 From: Sam Seay Date: Fri, 6 Jan 2023 10:51:58 +1300 Subject: [PATCH] Introduce clean command that should help with node_modules corruption and avoid fresh clone (#36302) --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 56b3481ca33..1e35a659206 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "scripts": { "build": "pnpm exec turbo run turbo:build", "test": "pnpm exec turbo run turbo:test", + "clean": "pnpm store prune && git clean -fx **/node_modules && pnpm i", "preinstall": "npx only-allow pnpm", "postinstall": "pnpm git:update-hooks", "git:update-hooks": "rm -r .git/hooks && mkdir -p .git/hooks && husky install",