Skip to content

Conversation

@LuD1161
Copy link
Contributor

@LuD1161 LuD1161 commented Feb 2, 2026

Summary

  • Fixes the release pipeline which has been broken since Jan 19 (commit f9ee4a3)
  • Adds a step to build TypeScript declarations for workspace packages before the frontend build

Problem

The frontend's tsconfig.json uses TypeScript project references to packages/shared and packages/backend-client. Since commit f9ee4a3 ("fast typecheck test") enabled composite builds for faster type checking, these packages must be built before the frontend can compile.

The dist/ folders are gitignored and don't exist in fresh Docker builds, causing TS6305 errors like:

error TS6305: Output file '/app/packages/shared/dist/index.d.ts' has not been built from source file '/app/packages/shared/src/index.ts'.

Solution

Added RUN cd /app && bunx tsc --build packages/shared packages/backend-client before the frontend build step in the Dockerfile.

Test plan

  • Verified locally by clearing all dist folders and running the same build sequence
  • Tested all three Docker targets locally:
    • docker build --target backend -t studio-backend:test .
    • docker build --target worker -t studio-worker:test .
    • docker build --target frontend -t studio-frontend:test .

The frontend's tsconfig.json uses TypeScript project references to
packages/shared and packages/backend-client. Since commit f9ee4a3
enabled composite builds for faster type checking, these packages
must be built before the frontend can compile.

The dist/ folders are gitignored and don't exist in fresh Docker
builds, causing TS6305 errors. This adds a step to build the
required package declarations before the frontend build.

Signed-off-by: Aseem Shrey <LuD1161@users.noreply.github.com>
@LuD1161 LuD1161 merged commit 65f0b50 into main Feb 2, 2026
3 of 5 checks passed
@LuD1161 LuD1161 deleted the fix/dockerfile-typescript-build branch February 2, 2026 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants