-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skip upgrading a dependency if set to a specific version? #436
Comments
Hi, thanks for posting. I could definitely see this being useful. Currently In the mean time, you will have to explicitly exclude packages, e.g.
|
I would expect this to be default behavior. When I pin a version with Could this perhaps be changed? |
I upgrade all modules in If |
|
@prantlf I don't agree. When you specify an exact version number it is the developer's intent to stay at the specific version. There are many ways to specify a flexible version number: NCU should honor these versioning rules. Upgrading pinned versions is risky, but you can always introduce something like |
To clarify, the main purpose of ncu is to break versioning rules. That said, people have a variety of needs around dependency management, and there should be a flag in ncu to optionally exclude fixed version numbers. |
e.g. You can exclude exact versions by filtering only ranges: ncu --filterVersion "/^[~^<>]| - |\.x$/" |
Based on what I'm seeing, npm check updates everything it can find to update. I was hoping it would only update things with a ^ character in the version?
For example this updates:
But this does not
Thoughts?
The reason I'm requesting this is I have dependencies that are updating, like
postcss-custom-properties
but the build they are updating to is broken so ...The text was updated successfully, but these errors were encountered: