From 30bc5153ea79ecc6d3b6e698a3a388d37a0051d9 Mon Sep 17 00:00:00 2001 From: Matt Venables Date: Thu, 25 Jun 2026 15:46:48 -0400 Subject: [PATCH] build(turbo): gate type-aware lint on package builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The root `//#lint` task runs oxlint with type-aware checking, which reads each package's compiled `dist/`. It declared no build dependency, so under parallel execution (e.g. `turbo check --force`) it could lint against a half-cleaned `dist/` and report spurious TS2307/TS2305 "cannot find module" errors. The normal CI path (`turbo build && turbo check`) masked this via the `&&` barrier. Anchor lint on `agentcommercekit#build` — the umbrella package transitively depends on every published package, so its `^build` forces the full graph to build before lint starts, regardless of invocation order. Co-Authored-By: Claude Opus 4.8 (1M context) --- turbo.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/turbo.json b/turbo.json index c01d72a..f357012 100644 --- a/turbo.json +++ b/turbo.json @@ -7,7 +7,8 @@ "//#check:packages": {}, "//#format": {}, "//#lint": { - "cache": false + "cache": false, + "dependsOn": ["agentcommercekit#build"] }, "//#lint:fix": {}, "build": {