npm-upgrade
npm-upgrade copied to clipboard
Ignore list doesn't work with maping react to preact
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.

.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.