Skip to content

Commit

Permalink
Add clean script
Browse files Browse the repository at this point in the history
  • Loading branch information
joao-vasconcelos committed Feb 5, 2025
1 parent ee87bec commit 8a77032
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
9 changes: 9 additions & 0 deletions cleanup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

echo "Starting cleanup..."

find . -type d \( -name "node_modules" -o -name ".next" -o -name "dist" -o -name ".turbo" \) -prune -exec rm -rf {} +

find . -type f -name "package-lock.json" -exec rm -f {} +

echo "Cleanup complete!"
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"scripts": {
"build": "turbo run build",
"build:packages": "turbo run build --filter=./packages/*",
"clean": "sh cleanup.sh",
"dev": "npm run build:packages && npm i && turbo run dev --concurrency=99",
"dev:server": "turbo dev --filter=@carrismetropolitana/api-server",
"dev:switch": "turbo dev --filter=@carrismetropolitana/api-switch",
Expand All @@ -22,9 +23,9 @@
"start": "dotenv-run -- turbo run start"
},
"devDependencies": {
"turbo": "2.3.4"
"turbo": "2.4.0"
},
"packageManager": "npm@11.0.0",
"packageManager": "npm@11.1.0",
"workspaces": [
"apps/*",
"packages/*"
Expand Down

0 comments on commit 8a77032

Please sign in to comment.