angelogiuseppe / force-resolutions

This packages modifies package-lock.json to force the installation of specific version of a transitive dependency
MIT License
26 stars 3 forks source link

Only partial resolution of versions #2

Closed hajnyon closed 1 year ago

hajnyon commented 2 years ago

Hi, thanks for the effort to provide alternative to npm-force-resolution! I tried to use this package but came across some difficulties. It seems to me it doesn't resolve all versions correctly. I managed to filter this to a minimal setup described below. I am not able to tell if this is a problem with this package or package I'm trying to lock version to.

Steps to reproduce

package.json

"resolutions": {
    "aurelia-loader-webpack": "2.1.0"
}
npm init -y
npm i -D aurelia-webpack-plugin@4
npx force-resolutions

After this, package-lock.json has only few versions updated and npm ls aurelia-loader-webpack outputs 2.2.4 as well:

I hope I described it sufficiently. I can add repository with this example if needed.

hajnyon commented 2 years ago

Hi, I'm a little confused as few notifications were delivered to my email, but there are no responses here. So I guess you removed the answers?

However, I've resolved my issue differently (by fixing all issues that blocked updating the package version). Moreover, on the second look, altering of package-lock.json doesn't seem as good and more as a "hacky" solution. Feel free to close this issue if you are not going to look in to it more.

angelogiuseppe commented 1 year ago

A new version is been released recently check the readme to join the discord server if issues are still happening Here is the new version: https://www.npmjs.com/package/force-resolutions?activeTab=readme