Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fyi for using patch-package on EAS #156

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions eas-patch-package.md
@@ -0,0 +1,9 @@
# Using `patch-package` on EAS

If you want to make changes to code inside a dependncy, [`patch-package`](https://github.com/ds300/patch-package) provides a convenient solution to do that.
kbrandwijk marked this conversation as resolved.
Show resolved Hide resolved

Out of the box, `patch-package` is fully compatible with EAS. If you follow the [installation instructions](https://github.com/ds300/patch-package?tab=readme-ov-file#set-up) for `patch-package`, including adding the `postinstall` script to your **package.json**, then any patches you have created in your project using `patch-package` will automatically be applied on EAS as part of the 'Install dependencies' step, just like on your local machine.

> **Note**: make sure that the **patches** folder that is created by `patch-package` is added to source control, so it will be included when your source code is uploaded to EAS.

The output from `patch-package` is available in the logs for the 'Install dependencies' step on your build details page.