npm-package-json-lint icon indicating copy to clipboard operation
npm-package-json-lint copied to clipboard

Rule for allowing star w/ absolute version

Open theogravity opened this issue 2 years ago • 0 comments

I have a situation where my project uses a package, but there are dependencies that also have older versions of the package.

I use a resolution field to force the package to a specific version, but this causes a DX issue where i now have the package in two separate sections: resolution and dependencies.

I've had a few situations already where I may update the version on one or the other but forget to do them all. It'd be nice if I can do a * for dependencies in this situation so I only need to update just the resolution field.

I'm currently using prefer-absolute-version-dependencies so the * would need to be an exception here for the dependencies

"dependencies": {
  "package": "*"
},
"resolutions": {
 "package": "1.0.0"
}

theogravity avatar Nov 08 '23 23:11 theogravity