Skip to content

Patches not applied using npm install--production #85

Closed

Description

@batmat

Hello,

Sorry, I'm still a Node newbie, so bear with me if this is (likely) a more general question than a specific question for patch-package.

So I've followed the officials docs on https://www.npmjs.com/package/patch-package and it worked awesomely the first time, congrats for that!

Then I realized just recently my patches weren't applied in --production mode. I figured out this was because prepare scripts are not run when using npm install --production.

image

Finally just stumbled into https://github.com/ds300/patch-package#set-up where the docs says postinstall which seems to work much better indeed.

image

I guess the README on https://www.npmjs.com/package/patch-package ought to be fixed to have the same content as https://github.com/ds300/patch-package doesn't it?

Thanks!

Activity

  1. ds300 commented on Jan 20, 2019

    @ds300
    Owner

    Thanks for the report! ❤️ I've fixed this now. Sorry for the delay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions