-
-
Notifications
You must be signed in to change notification settings - Fork 295
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
patch-package is not aware of yarn modules-folder config #102
Comments
Thanks for the report. I might look into this for a future release, but more likely Yarn 2.0 will come along and make node_modules redundant first 🙃 |
That comment did not age well 🙈 I'm not sure if many people really use |
@ds300 This would be a useful feature for me. I'm using a custom location for the node_modules folder (via |
Does that information get stored in the lockfile? I think I'd be open to a PR if it could be read from that. However a CLI command would be difficult because it needs to run on the post-install and realistcally there's not a way to add the CLI option in there |
As far as I can see it’s not in the lock file. How about an environment variable? In this way someone could do this: export NODE_MODULES=/foo
yarn install --modules-folder=$NODE_MODULES
# patch-packages reads $NODE_MODULES and stays in sync with install call |
applyPatches is hard-coded to use
<app_path>/node_modules/<package_name>
. It therefore ignores the yarn config ofinstall.modules-folder
which might placenode_modules
elsewhere.The text was updated successfully, but these errors were encountered: