[Feature] using multiple level of specificity or reintroducing the glob pattern for resolutions #2846
eltonio450
started this conversation in
Ideas
Replies: 1 comment
-
Because it didn't work 🙂 The original syntax was designed before I had enough experience with Yarn, and cannot work given some core assumptions of our architecture (namely, that a same package name/version always has the same dependencies regardless its branch in the dependency tree, only exception being peer deps). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I digged a bit in the repo to find related issues, but none seems to be about this problem with the "resolutions" property
Describe the user story
As a developper, I sometimes would like to overwrite a dependency of a dependency, especially when using workspaces
For example, I want to overwrite the resolution of detective-typecript, by precinct, only in my @main/mypackage workspace
example :
"@main/myPackage/madge/precinct/detective-typescript": "^7.0.0"
with yarn 1 and/or without workspace, it was easy
Describe the solution you'd like
With yarn 1, it was possible to use the glob pattern
"@main/myPackage/**/detective-typescript": "^7.0.0"
to make the change specific to a workspaceDescribe the drawbacks of your solution
I am not sure why this possibility has been removed, but I guess there is a reason, and there might be drawback to multiple level resolutions overwriting
Describe alternatives you've considered
yarn patch seems to be an alternative, but makes updating the package a bit trickier I guess
If I missed something, please let me know
Thank you
Beta Was this translation helpful? Give feedback.
All reactions