renovatebot / config-help

Please use the Discussions feature of https://github.com/renovatebot/renovate instead
https://github.com/renovatebot/renovate/discussions
MIT License
27 stars 16 forks source link

In monorepo, update multiple package.jsons in one PR #878

Closed Stuk closed 4 years ago

Stuk commented 4 years ago

Which Renovate are you using?

Other (please write below)

Self-hosted renovate

Which platform are you using?

GitHub Enterprise

Have you checked the logs? Don't forget to include them if relevant

When running rush update:

Rush Multi-Project Build Tool 5.30.1 - 
@types/node 
12.12.62 
- @internal/karma-launcher 
- @internal/server 
12.12.58 
- @internal/test-tools 

Found 1 mis-matching dependencies! 

What would you like to do?

In our monorepo (managed by Rush) there are multiple package.json files, and some of them reference the same dependencies, e.g. @types/node. It seems like Renovate is only updating one of the package.json files at a time, but Rush requires that every monorepo package depends on consistent dependency versions. In the error above you can see Rush complain.

Is there a way to configure Renovate to update all package.json with the same outdated dependency in one PR?

Thanks!

Stuk commented 4 years ago

The reason @internal/test-tools wasn't updated was because it's in a directory called test, which was ignored by :ignoreModulesAndTests. Whoops!