-
Notifications
You must be signed in to change notification settings - Fork 43
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
use stdlib-provided method to locate plugin dir #138
Conversation
As it turns out, this plugin does not work on our monorepo without this PR. |
Thanks for your contribution @jesse-savary , certainly more elegant! I tried to run your changes against this example and get this error:
Hoping you can help me understand what is different between your project and my example project. Thanks! |
I will look into this very soon |
@jesse-savary I'm curious if you've been able to identify what I'm doing wrong attempting to get your change working. Thanks! |
I just tested this PR and it actually works fine. I first encountered the same issue as you @brismithers when testing using
However, after looking at the resolve path, I saw that Any plans to merge and release this soon (even on a beta or canary channel)? |
@alexbchr thanks for that pointer! Using that approach everything checks out. |
Thanks @jesse-savary ! |
Description
Updates the
node_modules
locating code to userequire.resolve
, which should support more than 5 levels of nesting and be more reliable than manually checking fornode_modules
.Details
Motivation
Noticed that newer versions of
onesignal-expo-plugin
natively supports monorepos, making our local patch redundant. However I believe that our patch uses a better method to locate the directory so I am submitting it now.Scope
What will change:
Testing
Manual testing
Cloned my fork locally, built it, and tested using
expo prebuild -p ios
with a live app.Checklist
Overview
Testing
Final pass