Docs: dependsOn
is easy to use incorrectly and have tasks run out of order
#8066
Labels
dependsOn
is easy to use incorrectly and have tasks run out of order
#8066
What is the improvement or update you wish to see?
It would be great to add an example for when to use
^build, build
and the tradeoffs of this approach. This is a pattern we have noticed across many repositoriesturbo.json
files.Is there any context that might help us understand?
My current project set up:
"turbo": "^1.13.2"
"packageManager": "pnpm@9.0.5
On a project I am working on we recently started using
"test": { "dependsOn": ["^build"]}
. It wasn't clear why the scripts were running out of order.We noticed
pnpm build
would be running at the same time aspnpm test
and some workspaces were waiting for other workspaces to complete building correctly but packages that depended on themselves to completebuild
did not wait and would runtest
at the same time.Later we realised if added
^build, build
it would run in order.turbo.json
Does the docs page already exist? Please link to it.
https://turbo.build/repo/docs/reference/configuration#dependson
The text was updated successfully, but these errors were encountered: