Skip to content
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

Is there an option for restricting the range of a specific package? #1035

Closed
3 tasks done
jensbodal opened this issue Jan 28, 2022 · 1 comment
Closed
3 tasks done

Comments

@jensbodal
Copy link
Contributor

  • I have searched for similar issues
  • I am using the latest version of npm-check-updates
  • I am using node >= 12

Not sure if there's a better place to ask this:

I'm aware I can create a config file to flat out reject upgrading a package:

module.exports = {
  "reject": [
    "got"
  ]
};

I'm wondering if there's a way to restrict the max version of a package instead, something like:

module.exports = {
  "reject": [
    {
        packageName: "got",
        restrictVersionsTo: "<12",
        reason: "got@12 uses ESM which we do not yet support",
    },
  ]
};

output

 got  11.8.3  →  11.8.3 (got@12 uses ESM which we do not yet support)

I know the entire output is not supported just wondering if some semblance already exists as an option that I'm not aware of.

Thanks!

@jensbodal
Copy link
Contributor Author

I searched poorly the first time, found this: #866

Looks like there's a similar request but no, it does not currently exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant