-
|
I'm stumped. Turbo seems to be ignoring dependency order, and I'm not using {
"$schema": "https://turbo.build/schema.json",
"globalDependencies": ["**/.env.*local"],
"pipeline": {
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**", ".next/**"]
},
"test": {
"outputs": ["coverage/**"],
"dependsOn": []
},
"lint": {
"outputs": []
},
"dev": {
"cache": false
},
"clean": {
"cache": false
}
}
}Relevant portion of the dependency graph: When I run database/package.json: config/package.json: validation/package.json: When it gets the build order right, everything compiles just fine. I can also manually compile them in the proper order without problem. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
I may have solved the problem. Turbo appears to be running the (Actually, I have no idea why the above works consistently and the prior does not.) |
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the clarification. I was only using |
Beta Was this translation helpful? Give feedback.
turbo clean buildsays "I want to run these tasks, but they aren't related to each other". If you wantcleanto run beforebuild, you can addcleanto thedependsOnarray ofbuildand then just runturbo run build(no need to specifycleanat all from the CLI!)