Skip to content

Commit

Permalink
fix(turborepo): task dependencies not working as expected
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
mpellegrini committed Mar 14, 2024
1 parent 028e95d commit fef4dc2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
"clean": {
"cache": false
},
"codegen": {},
"topo": {
"dependsOn": ["^topo"]
},
"codegen": {
"dependsOn": ["topo"]
},
"lint": {
"dependsOn": ["codegen"]
},
Expand Down

0 comments on commit fef4dc2

Please sign in to comment.