Commit 3def551
fix(turbo): declare plugin-auth's typecheck dependency on its own build (#12043)
`@objectstack/plugin-auth`'s `typecheck` script runs a second tsc program
(`tsconfig.examples.json`) over `examples/basic-usage.ts`, which imports the
package by its own name. That resolves through `exports` to
`./dist/index.d.ts`, so the program's inputs include an artifact the package
itself produces -- and nothing declared it.
The generic `typecheck` task depends on `^build` (dependencies' build), never
the package's own, so `turbo run typecheck --filter=@objectstack/plugin-auth`
on a tree without the package's `dist/` fails with TS2307 on the example.
Declared with a package-scoped task carrying `dependsOn: ["build"]` -- the
shape the repo already uses for a task that needs its own package's build
output (`@objectstack/metadata#test`, `@objectstack/cli#test`, `test:e2e`).
Own `build` transitively pulls `^build`, so dependency ordering is unchanged.
Co-authored-by: Claude <noreply@anthropic.com>1 parent c6c7fec commit 3def551
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
157 | 162 | | |
158 | 163 | | |
159 | 164 | | |
| |||
0 commit comments