-
-
Notifications
You must be signed in to change notification settings - Fork 301
Add support for yarn-path property #347
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Supporting yarn-path would be great! Today, this will fail for me like:
|
This is actually my bad - I introduced the copying of |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Yarn supports a
yarn-path
option, which allows you to point to a version of yarn within the repo. This makes it easy to ensure everyone working in the repo to be on the same version.If this setting is specified, when
patch-package
copies over the.yarnrc
to the temp folder,yarn
will fail because it doesnt also copy over the yarn version. I think instead of copying the yarnrc, we can instead read, modify, and write the file to point to the correct old path. I will link the PR with this approach below. Let me know what you think!The text was updated successfully, but these errors were encountered: