From 9896b20461766c15e09648bfc1cec20bc017258a Mon Sep 17 00:00:00 2001 From: Chris Taylor Date: Sun, 25 Oct 2026 11:03:15 +0000 Subject: [PATCH] fix(build): build:tsc waits for the package's own build:types 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 --- .changeset/release-build-own-types.md | 4 ++++ turbo.json | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .changeset/release-build-own-types.md diff --git a/.changeset/release-build-own-types.md b/.changeset/release-build-own-types.md new file mode 100644 index 0000000000..aa949e3ee1 --- /dev/null +++ b/.changeset/release-build-own-types.md @@ -0,0 +1,4 @@ +--- +--- + +Fix the release build. `build:tsc` now also waits for the package's own `build:types`, so packages that import themselves by name (`@prosopo/types`, and tests in `provider` and `api-route`) can resolve. The v3.9.3 release failed at "Build packages" because of this. diff --git a/turbo.json b/turbo.json index d149ea5198..22f179641e 100644 --- a/turbo.json +++ b/turbo.json @@ -32,9 +32,11 @@ "outputs": ["dist/types/**"] }, // Workspace dependencies resolve through `exports.types`, which is - // dist/types, not the dist/tsc this task emits. + // dist/types, not the dist/tsc this task emits. That includes a package + // importing itself by name (@prosopo/types does, and so do provider + // and api-route tests), hence its own build:types as well. "build:tsc": { - "dependsOn": ["^build:tsc", "^build:types"], + "dependsOn": ["^build:tsc", "^build:types", "build:types"], "outputs": ["dist/tsc/**"] }, "build:cjs": {