Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .changeset/release-build-own-types.md
Original file line number Diff line number Diff line change
@@ -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.
6 changes: 4 additions & 2 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
Loading