Open jsumners opened 6 years ago
Related #330
This is possible with npm-check-updates:
ncu -i -u --target=minor
npm install
@patrickdaze npm-check-updates
works fundamentally different from npm-check
. I gave it a go a while back. I prefer the way npm-check
works, I just would like it to fully consider semver qualifiers.
I also prefer npm-check
and I'd be great if it would use qualifiers defined in package.json. In the meantime I was able to use ncu
as a workaround to target the current major version.
Excellent idea. I would also suggest that in the interactive mode it should allow two options: update to the latest major (if any) and to the latest minor version (if any).
Let's assume a codebase is using Hapi v16. When running
npm-check
on this codebase it will suggest Hapi v17 as an update and correctly warn that it is a major update. However, there are still LTS releases in the v16 release that can be applied. Currently,npm-check
does not provide those as an option. It would be fantastic if it did.