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

peerDependency version messes up devDependency version update

Open iiroj opened this issue 5 years ago • 0 comments

In my package I specify a peer dependency to a React version:

{
    "peerDependencies": {
        "react": ">=16.3"
    }
}

For development I've also installed React as a dev dependency:

{
    "devDependencies": {
        "react": "16.11.0"
    }
}

Now, when I run npm-upgrade it suggest bumping the devDependencies React to >=16.12 instead of 16.12.0.

In my opinion, it should always respect the scheme of the version to be bumped, instead of in this case using the scheme from peerDependencies.

iiroj avatar Dec 30 '19 09:12 iiroj