Skip to content

Fix the release build: build:tsc waits for the package's own types - #3609

Merged
forgetso merged 1 commit into
mainfrom
fix/release-build-own-types
Oct 25, 2026
Merged

forgetso merged 1 commit into
mainfrom
fix/release-build-own-types

Conversation

@forgetso

Copy link
Copy Markdown
Member

What changed

build:tsc in turbo.json now also depends on the package's own build:types, not just its dependencies'.

Why

Since #3605, packages resolve each other's types from dist/types, but build:tsc writes to dist/tsc. @prosopo/types imports itself by name in two files, as do some provider and api-route tests. In a fresh checkout those imports can't resolve until the package's own dist/types exists. That's why the v3.9.3 release failed at "Build packages" (run):

@prosopo/types:build:tsc: src/api/api.ts(18,8): error TS2307: Cannot find module '@prosopo/types'

PR CI didn't catch it because typecheck already depends on the package's own build:types.

Testing

I reproduced the release's "Build packages" step in a fresh checkout of main (with submodules), production mode, nothing cached:

  • before: build:all:tsc fails with the error above
  • after: build:all:tsc 110/110, build:all 112/112, build:all:cjs 56/56

Once this is merged, a new release (v3.9.4) is needed to ship #3602.

🤖 Generated with Claude Code

The release build runs turbo build:tsc, which since #3605 only waited for
dependencies' dist/types. @prosopo/types imports itself by name, so the
v3.9.3 publish failed resolving it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@forgetso
forgetso enabled auto-merge (squash) October 25, 2026 11:03
@forgetso
forgetso merged commit 5f3c332 into main Oct 25, 2026
20 checks passed
@forgetso
forgetso deleted the fix/release-build-own-types branch October 25, 2026 11:22
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.

1 participant