这是indexloc提供的服务,不要输入任何密码
Skip to content
Discussion options

You must be logged in to vote

Hi Murderlon,

This is a common challenge with Turbo when you have a peer dependency that many packages rely on, like @uppy/core. Turbo automatically orders builds based on dependencies in package.json, but peerDependencies aren’t considered by default in the task graph.

Why your current approach causes issues
When you add "dependsOn": ["@uppy/core#build"] in your package-specific turbo.json, Turbo treats that as the only dependency for the task, ignoring the implicit ones from package.json.

This can break ordering and cause race conditions because other dependencies might not be built before the package.

Recommended approaches
Centralize dependency info in root turbo.json
Instead of addin…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Murderlon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants