Skip to content

Commit 3def551

Browse files
yinlianghuiclaude
andauthored
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

File tree

turbo.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,11 @@
154154
"$TURBO_ROOT$/packages/types/src/node-isolation.test.ts"
155155
]
156156
},
157+
"@objectstack/plugin-auth#typecheck": {
158+
"dependsOn": ["build"],
159+
"outputs": [],
160+
"inputs": ["$TURBO_DEFAULT$", "!dist/**", "!coverage/**", "!.turbo/**"]
161+
},
157162
"@objectstack/trigger-record-change#test": {
158163
"dependsOn": ["^build"],
159164
"inputs": [

0 commit comments

Comments
 (0)