Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions tools/update-swc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,24 +71,15 @@ mv crates "$DEPS_FOLDER/crates"
mv tools "$DEPS_FOLDER/tools"

# Remove all unused folders (using -depth to process bottom-up)
find "$DEPS_FOLDER" -depth -type d -name "examples" -exec rm -rf {} + 2>/dev/null || true
find "$DEPS_FOLDER" -depth -type d -name "__tests__" -exec rm -rf {} + 2>/dev/null || true
find "$DEPS_FOLDER" -depth -type d -name "tests" -exec rm -rf {} + 2>/dev/null || true
find "$DEPS_FOLDER" -depth -type d -name "benches" -exec rm -rf {} + 2>/dev/null || true
find "$DEPS_FOLDER" -depth -type d -name "fixture" -exec rm -rf {} + 2>/dev/null || true
find "$DEPS_FOLDER" -depth -type d -name "fixtures" -exec rm -rf {} + 2>/dev/null || true

# Remove test files
find "$DEPS_FOLDER" -type f -name "*test*.rs" -exec rm -f {} + 2>/dev/null || true
find "$DEPS_FOLDER" -type f -name "*spec*.rs" -exec rm -f {} + 2>/dev/null || true

# Remove testing crates (not needed for builds)
rm -rf "$DEPS_FOLDER/crates/testing" 2>/dev/null || true
rm -rf "$DEPS_FOLDER/crates/testing_macros" 2>/dev/null || true
rm -rf "$DEPS_FOLDER/crates/swc_ecma_testing" 2>/dev/null || true
rm -rf "$DEPS_FOLDER/crates/swc_ecma_transforms_testing" 2>/dev/null || true
rm -rf "$DEPS_FOLDER/crates/swc_plugin_backend_tests" 2>/dev/null || true

echo "All done!"
echo ""
echo "Please git add swc and commit the new version:"
Expand Down
Loading