Skip to content

Commit cb74316

Browse files
Laoujinclaude
andcommitted
Keep @types/mongodb, only remove babel types
The code needs @types/mongodb for compilation. Only remove babel types which have TS 4.3 syntax incompatibility. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 5aa2660 commit cb74316

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/playwright.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,9 @@ jobs:
6868
- name: Build backend
6969
working-directory: ./confac/backend
7070
run: |
71-
# Remove problematic type definitions entirely
71+
# Remove only babel types which have syntax incompatible with TS 4.3
7272
rm -rf node_modules/@types/babel__*
73-
rm -rf node_modules/@types/bson
74-
rm -rf node_modules/@types/mongodb
75-
# Build - the actual code doesn't need these types, they're just dev dependencies
73+
# Build with skipLibCheck to avoid library type mismatch errors
7674
npx tsc -p . --skipLibCheck
7775
7876
- name: Start backend

0 commit comments

Comments
 (0)