patch-package icon indicating copy to clipboard operation
patch-package copied to clipboard

fix: correctly resolve the installed package version

Open zhouzh1 opened this issue 1 year ago • 1 comments

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. image

Environment

  • Package manager: Yarn

zhouzh1 avatar Oct 16 '24 12:10 zhouzh1

Is there anybody can help take a review? @ds300

zhouzh1 avatar Oct 18 '24 13:10 zhouzh1