diff --git a/tools/update-swc.sh b/tools/update-swc.sh index 6279ec31d..d3aced03d 100755 --- a/tools/update-swc.sh +++ b/tools/update-swc.sh @@ -71,10 +71,8 @@ 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 @@ -82,13 +80,6 @@ find "$DEPS_FOLDER" -depth -type d -name "fixtures" -exec rm -rf {} + 2>/dev/nul 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:"