Skip to content

Commit 7647826

Browse files
fix: keep some testing deps
1 parent ef34018 commit 7647826

3 files changed

Lines changed: 5 additions & 12 deletions

File tree

.github/codeql/codeql-config.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: "CodeQL config"
22

33
paths-ignore:
4-
- 'deps/swc/crates/**/tests/**'
5-
- 'deps/swc/bindings/**/tests/**'
6-
- 'deps/swc/bindings/**/__tests__/**'
4+
- 'deps/**'
5+
- 'test/**'
6+
- '**/*.test.js'
7+
- '**/*.test.ts'

.github/workflows/audit.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,4 @@ jobs:
4545
uses: github/codeql-action/analyze@19b2f06db2b6f5108140aeb04014ef02b648f789 # v3.29.5
4646
with:
4747
category: "/language:${{matrix.language}}"
48+
upload-database: false

tools/update-swc.sh

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,24 +71,15 @@ mv crates "$DEPS_FOLDER/crates"
7171
mv tools "$DEPS_FOLDER/tools"
7272

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

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

85-
# Remove testing crates (not needed for builds)
86-
rm -rf "$DEPS_FOLDER/crates/testing" 2>/dev/null || true
87-
rm -rf "$DEPS_FOLDER/crates/testing_macros" 2>/dev/null || true
88-
rm -rf "$DEPS_FOLDER/crates/swc_ecma_testing" 2>/dev/null || true
89-
rm -rf "$DEPS_FOLDER/crates/swc_ecma_transforms_testing" 2>/dev/null || true
90-
rm -rf "$DEPS_FOLDER/crates/swc_plugin_backend_tests" 2>/dev/null || true
91-
9283
echo "All done!"
9384
echo ""
9485
echo "Please git add swc and commit the new version:"

0 commit comments

Comments
 (0)