Why this matters
A correct build graph and declared outputs enable incremental builds and consistent caching across workspaces.
In turbo.json, each task must set dependsOn (e.g., "^build") and outputs (e.g., "dist/"). Require cache:true for build/test/lint pipelines unless explicitly justified.
A correct build graph and declared outputs enable incremental builds and consistent caching across workspaces.
Side-by-side examples engineers can pattern-match during review.
{
"pipeline": {
"build": {}
}
}{
"pipeline": {
"build": { "outputs": ["dist/"], "cache": true },
"test": { "dependsOn": ["build"], "outputs": ["coverage/"], "cache": true },
"lint": { "outputs": [] }
}
}"pipeline": { "build": {} }"pipeline": { "build": { "outputs": ["dist/"], "cache": true } }From the same buckets as this rule.