Skip to content

Commit

Permalink
ci(ci): fix smoke tests ci errors
Browse files Browse the repository at this point in the history
  • Loading branch information
snobbee committed Feb 6, 2025
1 parent d3274f3 commit 418d8ab
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
"dev": "turbo --concurrency 100 dev",
"lint": "turbo lint",
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"smokeTests": "bash ./scripts/smokeTests.sh",
"detectMinifiedCode": "bash ./scripts/detect-minified-code.sh"
"smokeTests": "bash ./scripts/smoke-tests.sh",
"detectMinifiedCode": "bash ./scripts/detect-minified-code.sh",
"clean": "bash ./scripts/clean.sh"
},
"dependencies": {
"@biomejs/biome": "^1.9.4",
Expand Down
22 changes: 22 additions & 0 deletions scripts/clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

# Navigate to the script's directory
cd "$(dirname "$0")"/..
echo "Cleanup started."

# Find and remove build artifacts and dependency directories
find . -type d -name "node_modules" -exec rm -rf {} + \
-o -type d -name "dist" -exec rm -rf {} + \
-o -type d -name ".turbo" -exec rm -rf {} +

# Remove package manager files
rm -f pnpm-lock.yaml
rm -f yarn.lock
rm -f package-lock.json

# Clean cache directories
rm -rf .turbo
rm -rf .cache

echo "Cleanup completed."
exit 0

0 comments on commit 418d8ab

Please sign in to comment.