If my package has these dependencies
{ \"name\": \"my-package\", \"dependencies\": { \"foobar\":\"~1.0.3\", \"baz\":\"2.0.9\" }
And the <
This is now possible with yarn's selective version resolution feature.
In your project's package.json, use resolutions:
package.json
resolutions
"resolutions": { "foobar/**/baz": "2.0.9" }
This overrides package foobar's (and any other packages under it) version of baz, forcing it to be version 2.0.9.
foobar
baz