patch-package
patch-package copied to clipboard
Don't warn about multiple patches
Resolves #541
When using multiple patches, we see errors when multiple patches are applied to the same library. This is because the version numbers are compared without consideration for the suffix.
This PR adds a check to skip the warning. This is useful when using the --error-on-warn flag.
Warning: patch-package detected a patch file version mismatch
Don't worry! This is probably fine. The patch was still applied
successfully. Here's the deets:
Patch file created for
[email protected]+lowercase
applied to
[email protected]
At path
node_modules/axios
This warning is just to give you a heads-up. There is a small chance of
breakage even though the patch was applied successfully. Make sure the package
still behaves like you expect (you wrote tests, right?) and then run
patch-package axios
to update the version in the patch file name and make this warning go away.
Warning: patch-package detected a patch file version mismatch
Don't worry! This is probably fine. The patch was still applied
successfully. Here's the deets:
Patch file created for
[email protected]+status-missing
applied to
[email protected]
At path
node_modules/axios
This warning is just to give you a heads-up. There is a small chance of
breakage even though the patch was applied successfully. Make sure the package
still behaves like you expect (you wrote tests, right?) and then run
patch-package axios
to update the version in the patch file name and make this warning go away.
---
patch-package finished with 2 warning(s).