260201.1 · d7324ec424453a42d9de6cfd192e27df1ec8497e
fix: keep some testing deps
reading declarations
.github/codeql/codeql-config.yml
@@ -1,6 +1,7 @@ name: "CodeQL config" paths-ignore:- - 'deps/swc/crates/**/tests/**'- - 'deps/swc/bindings/**/tests/**'- - 'deps/swc/bindings/**/__tests__/**'+ - 'deps/**'+ - 'test/**'+ - '**/*.test.js'+ - '**/*.test.ts'
@@ -45,3 +45,4 @@ jobs: uses: github/codeql-action/analyze@19b2f06db2b6f5108140aeb04014ef02b648f789 # v3.29.5 with: category: "/language:${{matrix.language}}"+ upload-database: false
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:"