How to override a nested version of a dependency package?

Somewhere in the yarn.lock file:

reactpack@ ^0.9.0: resolved "https://registry.yarnpkg.com/reactpack/-/reactpack-0.9.0.tgz#ee3b7692a2c99231d5c235af87ad33d0d0cb6434" dependencies: ... react-hot-loader "^1.3.0" ... 

I want to change the response-hot-loader to "3.0.0-beta.6". I tried adding the following part to package.json:

 "resolutions": { "react-hot-loader": "3.0.0-beta.6" } 

but it is ignored by the thread :(. Performing yarn --flat wants to smooth ALL packets (this is not what I want) ...

Any other alternatives?

+5
source share

Source: https://habr.com/ru/post/1264493/


All Articles