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

Ignore list doesn't work with maping react to preact #72

Open
dawidk92 opened this issue Feb 9, 2022 · 0 comments
Open

Ignore list doesn't work with maping react to preact #72

dawidk92 opened this issue Feb 9, 2022 · 0 comments

Comments

@dawidk92
Copy link

dawidk92 commented Feb 9, 2022

I have a project with Next.js and Preact and I have to map react to preact in package.json like:
"react": "npm:@preact/compat@17.0.2"

When I add it to .npm-upgrade.json to be ignored, even when I use "*" in "versions" npm-upgrade doesn't see it and proposes to install a newer version.

image

.npm-upgrade.json

{
  "ignore": {
    "react": {
      "versions": "*",
      "reason": "version 17.0.3 breaks Next.js"
    }
}

I tried multiple combinations with provided "versions" and none of them work.

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