manypkg icon indicating copy to clipboard operation
manypkg copied to clipboard

Feature Request: Option Flag to always use Highest Semver Range

Open fbartho opened this issue 3 years ago • 1 comments

Currently, manypkg check and manypkg fix decide to resolve dependency versions based on the most commonly witnessed range in the repo. -- Only when there are equal quantities of each range specifier do we select the highest range:

https://github.com/Thinkmill/manypkg/blob/b8b914441995ad267a490251d443665fb999e32b/packages/cli/src/checks/utils.ts#L152-L158

Would we support a flag --use-highest-range on each command to force this algorithm to select the highest range for a given dependency?

Alternative: add a .manypkg.config.json this and other flags?

I'm happy to contribute this code change if a maintainer can indicate if they'd accept an appropriate PR implementing this.

fbartho avatar Jan 06 '22 19:01 fbartho

I also prefer this behavior and would be happy to help.

I do worry, though, that y'all are trying to avoid introducing unnecessary configuration... if so is there another recommended way to upgrade a dependency accross an entire monorepo to a specified range?

jrolfs avatar Feb 05 '22 07:02 jrolfs