Skip to content

Documentation: explain resolutions example #6372

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

Closed
avdd opened this issue Sep 9, 2018 · 2 comments
Closed

Documentation: explain resolutions example #6372

avdd opened this issue Sep 9, 2018 · 2 comments
Assignees
Labels
fixed-in-modern This issue has been fixed / implemented in Yarn 2+. triaged

Comments

@avdd
Copy link

avdd commented Sep 9, 2018

The example given here

https://yarnpkg.com/lang/en/docs/selective-version-resolutions/#toc-how-to-use-it

is entirely opaque. What is the problem motivating this example? Why are there three versions of left-pad? What are file:../c-1, file:../d2-1 and why are they used here? What is c/**/left-pad and why is different to d2/left-pad?

As this is one of the suggested workarounds for #4986 it would be helpful if the example were clearer. I imagine many people encountering this are, like me, not very familiar with the arcana of dependency specification.

@ghost ghost assigned arcanis Sep 9, 2018
@ghost ghost added the triaged label Sep 9, 2018
@kuworking
Copy link

kuworking commented Jan 28, 2020

Definetively I am now looking for additional examples to figure it out how it works

*this link is helpful https://mnaks.me/yarn-resolutions/

@paul-soporan
Copy link
Member

paul-soporan commented Jan 3, 2021

Closing as we've revamped the resolutions field in v2 and have improved and updated the documentation: https://yarnpkg.com/configuration/manifest#resolutions.

https://yarnpkg.com/getting-started/migration

@paul-soporan paul-soporan added the fixed-in-modern This issue has been fixed / implemented in Yarn 2+. label Jan 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed-in-modern This issue has been fixed / implemented in Yarn 2+. triaged
Projects
None yet
Development

No branches or pull requests

4 participants