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
yarn resolutions map package does not work #7680
Comments
We see the same on yarn 1.22.10 unfortunately. |
The link you posted isn't really traditional documentation as much as it's a specification. The section you link to seems to be in the context of a discussion surrounding 'potential alternatives' which were not implemented at the time the doc was written. I came here hoping to find that they had later added it to the spec. No dice it seems 😥 |
Too bad it doesn't work in real life. Would love to be able to temporary replace original packages with our forks. |
Solution is to do: "devDependencies": {
"@angular/cli": "1.0.3",
"typescript": "2.2.2"
},
"resolutions": {
- "typescript": "my-typescript-fork",
+ "typescript": "npm:my-typescript-fork",
} |
as the doc says resolutons can map package
https://github.com/yarnpkg/rfcs/blob/master/implemented/0000-selective-versions-resolutions.md#mapping-version-specifications-as-well-as-packages-name
this does not work on yarn(latest) 1.19.1, node 12
just a warning shows
The text was updated successfully, but these errors were encountered: