From 2e70f26c1665ba8a3dae630eb1420da7d5718ed9 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 25 Aug 2026 06:38:08 +0000 Subject: [PATCH] fix(turbo): declare plugin-auth's typecheck dependency on its own build `@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. --- turbo.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/turbo.json b/turbo.json index 18dcaf008f..da7121812e 100644 --- a/turbo.json +++ b/turbo.json @@ -154,6 +154,11 @@ "$TURBO_ROOT$/packages/types/src/node-isolation.test.ts" ] }, + "@objectstack/plugin-auth#typecheck": { + "dependsOn": ["build"], + "outputs": [], + "inputs": ["$TURBO_DEFAULT$", "!dist/**", "!coverage/**", "!.turbo/**"] + }, "@objectstack/trigger-record-change#test": { "dependsOn": ["^build"], "inputs": [