-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
area: ergonomicsIssues and features impacting the developer experience of using turboIssues and features impacting the developer experience of using turbo
Description
Describe the feature you'd like to request
In the canonical example, turbo run dev --parallel --no-cache is used for development.
However, --parallel will build dependent tasks in parallel too, even though those might need to be executed in dependency order.
Given a graph like: A -> B and A -> C
And a turborepo definition like:
"turbo": {
"pipeline": {
"build": {
"dependsOn": ["^build"]
},
"dev": {
"dependsOn": ["build"]
"cache": false
}
}
}Running turbo run dev --parallel --no-cache will break on the build step, because the builds of B and C depend on the build of A completing.
Describe the solution you'd like
One possible solution is to add a parameter like --parallel-depth=1 (default: Infinite), where only the dev commands are executed in parallel, but deeper dependent commands are not.
Describe alternatives you've considered
Removing build from dev: { dependsOn }, and executing 2 commands works:
turbo run build
turbo run dev --parallel --no-cache
crutchcorn, tyler-mitchell, lovetingyuan, IPWright83, weyert and 27 more
Metadata
Metadata
Assignees
Labels
area: ergonomicsIssues and features impacting the developer experience of using turboIssues and features impacting the developer experience of using turbo