patch-package
patch-package copied to clipboard
fix: correctly resolve the installed package version
Issue
In our project, the react-native-web lib is referenced at two places and the respective version scheme for it is different, one is the ^0.19.12, another is the ~0.19.12, after installing by the yarn command, the final yarn.lock file includes such a fragment which describes what version of the react-native-web we're using, but the patch-package seems to be not able to correctly process this kind of structure, finally it resolves the package version to be the ^0.19.12, react-native-web@npm:~0.19.12, apparently, it's incorrect and causes the patch procedure to fail.
Environment
- Package manager: Yarn
Is there anybody can help take a review? @ds300