You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 as pnpm test and some workspaces were waiting for other workspaces to complete building correctly but packages that depended on themselves to complete build did not wait and would run test at the same time.
Later we realised if added ^build, build it would run in order.
We found the task dependency documentation but it would have been nice to have a reference to those details from the dependsOn configuration page. Searching dependsOn takes you to the configuration page.
The dependsOn example on the configuration page doesn't have any examples with both "^build", "build" and explain why this pattern would be helpful.
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": "[email protected]
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: