From d13c5ca8ae99461f6558143a46a7ebad740dfd1a Mon Sep 17 00:00:00 2001 From: Ed Castro Date: Mon, 7 Oct 2024 19:16:28 -0300 Subject: [PATCH] feat: Add `clean:all` script to remove unnecessary directories This commit adds a new script, clean:all, to the package.json file. The clean:all script uses the find command to locate and remove specific directories such as 'node_modules', '.next', '.turbo', 'dist', and '.cache'. This script helps to clean up the project by removing unnecessary directories. --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index b6552d2f..ed61a019 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "build": "turbo run build", "clean": "git clean -xdf node_modules", "clean:workspaces": "turbo run clean", + "clean:all": "find . -type d \\( -name 'node_modules' -o -name '.next' -o -name '.turbo' -o -name 'dist' -o -name '.cache' \\) -prune -exec rm -rf '{}' +", "db:push": "turbo -F @commune-ts/db push", "db:studio": "turbo -F @commune-ts/db studio", "dev": "turbo watch dev",