patch-package: Patches not being applied during Jenkins builds

I have installed patch-package to use in my react-app and running locally, everything works fine. With an update to date patch file, running yarn && yarn run build correctly applies the patches.

However, when Jenkins tries to run yarn && yarn run build, the patches do not get applied correctly. I have tried installing both patch-packaage and postinstall-postinstall as both a regular dependency and a dev dependency.

Is there any other obvious steps I might be missing here? Has anyone tried using this package with a deployment process, such as Circle CI or Jenkins?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15 (5 by maintainers)

Most upvoted comments

Updating to patch-package@beta should fix the problem if it’s git related, since we no longer use git. You might need to recreate your patch files. I’m working on backwards compatibility or at least an upgrade path.

On Thu, 17 Jan 2019, 18:59 Patrick Cooney, notifications@github.com wrote:

Has anyone figured out how to get this working with Zeit now? I’ve tried both postinstall-postinstall and postinstall-prepare but neither seems to be working. The build just hangs 😕

There are a few discussions here: zeit/now-cli#1666 https://github.com/zeit/now-cli/issues/1666 zeit/now-cli#1661 https://github.com/zeit/now-cli/issues/1661 zeit/now-builders#49 https://github.com/zeit/now-builders/issues/49

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/ds300/patch-package/issues/97#issuecomment-455289179, or mute the thread https://github.com/notifications/unsubscribe-auth/ABL1qWcLIktfDTlZ_sz-YcDwZVZ7_ywfks5vEMf0gaJpZM4Y5sb1 .

Forgot to update here, but I used the description here to set it up: https://www.npmjs.com/package/patch-package And prepare failed for me whereas postinstall worked.

Perhaps the npmjs page should be updated?