npm-upgrade icon indicating copy to clipboard operation
npm-upgrade copied to clipboard

Ignore list doesn't work with maping react to preact

Open dawidk92 opened this issue 3 years ago • 0 comments

I have a project with Next.js and Preact and I have to map react to preact in package.json like: "react": "npm:@preact/[email protected]"

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.

dawidk92 avatar Feb 09 '22 17:02 dawidk92