Skip to content

.dev file extension is used as version number #284

@EyMaddis

Description

@EyMaddis

I have react-native in my devDependencies (since this is also a web app) and therefore renamed the patch file react-native+0.62.2.dev.patch.
However, this now leads to warnings everytime I install packages (yarn in my case).


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]

  applied to

    [email protected]
  
  At path
  
    node_modules/react-native

  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 react-native

  to update the version in the patch file name and make this warning go away.

It seems that patch-package thinks that .dev is part of the version number.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions