Skip to content

Commit 0cf0976

Browse files
ci(pr-build): run build:ts before typecheck for Web SDK
The Web SDK is a yarn workspace where packages/llamacpp and packages/onnx import from `@runanywhere/web` (the core package). `npm run typecheck` resolves cross-workspace imports via the core package's dist/.d.ts files, so it has to run AFTER build:ts has produced them — not before. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 1a1a79b commit 0cf0976

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/pr-build.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -343,11 +343,15 @@ jobs:
343343
- name: Install web deps
344344
working-directory: sdk/runanywhere-web
345345
run: npm install
346-
- name: Typecheck + build TS
346+
- name: Build TS (core then llamacpp then onnx)
347347
working-directory: sdk/runanywhere-web
348-
run: |
349-
npm run typecheck
350-
npm run build:ts
348+
# build:ts must run before typecheck because llamacpp/onnx packages
349+
# import from `@runanywhere/web`; tsc can only resolve those imports
350+
# once the core package has produced its `dist/` (with .d.ts files).
351+
run: npm run build:ts
352+
- name: Typecheck (now that dist/ exists)
353+
working-directory: sdk/runanywhere-web
354+
run: npm run typecheck
351355

352356
sdk_flutter:
353357
needs: detect

0 commit comments

Comments
 (0)