Skip to content

Commit e291a58

Browse files
Laoujinclaude
andcommitted
Explicitly install @types/bson for backend build
The @types/bson package sometimes gets hoisted away with npm ci. Install it explicitly before building. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 40bff68 commit e291a58

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/playwright.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,12 @@ jobs:
6868
- name: Build backend
6969
working-directory: ./confac/backend
7070
run: |
71+
# Ensure @types/bson is installed (transitive dep that sometimes gets hoisted away)
72+
npm install @types/bson@4 --no-save
7173
# Remove problematic type definitions that have TS version issues
7274
rm -rf node_modules/@types/babel__*
73-
# Remove custom typeRoots and build with default resolution + skipLibCheck
74-
npx tsc --outDir ./public --rootDir ./src --skipLibCheck --esModuleInterop --resolveJsonModule --strict
75+
# Build with skipLibCheck
76+
npm run build
7577
7678
- name: Start backend
7779
working-directory: ./confac/backend

0 commit comments

Comments
 (0)