Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rule for allowing star w/ absolute version #1166

Open
theogravity opened this issue Nov 8, 2023 · 0 comments
Open

Rule for allowing star w/ absolute version #1166

theogravity opened this issue Nov 8, 2023 · 0 comments

Comments

@theogravity
Copy link

theogravity commented Nov 8, 2023

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"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant