From fef4dc2a79d11315489a49173f551077b7190dc5 Mon Sep 17 00:00:00 2001 From: Michael Pellegrini <466696+mpellegrini@users.noreply.github.com> Date: Thu, 14 Mar 2024 17:24:08 -0400 Subject: [PATCH] fix(turborepo): task dependencies not working as expected * All tasks run in parallel to keep things speedy: Because the results of your type checks don't depend on each other, you can run all of them in parallel. * Change in a dependency should result in a cache miss: If package 'A' changes, the task in dependent packages should know to miss cache. see: turbo.build/repo/docs/core-concepts/monorepos/task-dependencies#dependencies-outside-of-a-task --- turbo.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/turbo.json b/turbo.json index edd22b4..490a5f4 100644 --- a/turbo.json +++ b/turbo.json @@ -7,7 +7,12 @@ "clean": { "cache": false }, - "codegen": {}, + "topo": { + "dependsOn": ["^topo"] + }, + "codegen": { + "dependsOn": ["topo"] + }, "lint": { "dependsOn": ["codegen"] },