Skip to content

Commit 159e8d8

Browse files
Laoujinclaude
andcommitted
Upgrade TypeScript to 5.x for backend build
TypeScript 4.3 cannot parse newer type syntax in dependencies like engine.io and @types/babel__traverse. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 8e5ffa7 commit 159e8d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/playwright.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ jobs:
7171
- name: Build backend
7272
working-directory: ./confac/backend
7373
run: |
74-
# Remove only babel types which have syntax incompatible with TS 4.3
75-
rm -rf node_modules/@types/babel__*
76-
# Build with skipLibCheck to avoid library type mismatch errors
74+
# Install TypeScript 5.x to handle newer type syntax in dependencies
75+
npm install typescript@5 --save-dev
76+
# Build with skipLibCheck to avoid library type checking issues
7777
npx tsc -p . --skipLibCheck
7878
7979
- name: Start backend

0 commit comments

Comments
 (0)