Yarn 4 and selective dependency resolution not working

20 Views Asked by At

Is it possible to use selective dependency resolution with Yarn 4? I tried something like this, but when I run yarn the paths in resolution are removed.

This is npm ls xml2js.

├─┬ @expo/[email protected] extraneous
│ └── [email protected] deduped
├─┬ [email protected] extraneous
│ ├─┬ @expo/[email protected] extraneous
│ │ └── [email protected] deduped
│ └── [email protected] extraneous
└── [email protected] extraneous

I want to replace xml2js in react-native-iap with version 0.5.0 and for other libraries keep on 0.6.0.

I tried something like this, but

  "resolutions": {
    "react-native-iap/**/xml2js": "0.6.0",
  },

but when I run yarn it is deleted from resolutions and nothing changes.

Is it even possible with this version of yarn?

0

There are 0 best solutions below