Closed marcodejongh closed 2 years ago
Latest commit: df618d108f4f9fbaeb4b94c771febf2406414e70
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
@mitchellhamilton This should be ready for review. I hadn't thought of the edge-case where all ranges are used the same amount of times, but it was relatively easy to cover off that edge-case, it did lead to me needing a lot more extra tests though.
how do I use the previous behavior? I was able to fix one dependency and manypkg would do the rest in a large monorepo. is there a flag or argument to fix
to use previous behavior?
You can use the upgrade command for that
fixes #117
When a developer adds a new dependency, npm/yarn will add the newest version of the dependency. We want manypkg to fix that newest version to the most commonly used version in the repo, since it is unlikely that a developer adding a new dependency to a package also intends to update the whole repo.
If the dependency range for a dependency all occur once, it will fix to the highest version.