-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
fix(ext/node): discover .npmrc in user's homedir #24021
Conversation
Should we also add support for the other locations? According to the docs there is a total of 4 locations to check:
|
The last one makes no sense, because we're not npm and the "global" one has not been mentioned even once in #16105. I think we're fine with just per-project and per-user. Some tools like Renovate don't even support per-user config. |
Fair point. Per project + per user probably covers 99% of use cases. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. LGTM
This commit adds discovery of `.npmrc` files in user's homedir. This is not a perfect fix as it doesn't merge multiple `.npmrc` files together as per denoland#23954 but allows to fallback if no `.npmrc` file is discovered in the project root.
This commit adds discovery of `.npmrc` files in user's homedir. This is not a perfect fix as it doesn't merge multiple `.npmrc` files together as per denoland#23954 but allows to fallback if no `.npmrc` file is discovered in the project root.
Doesn't this potentially conflict with JSR? |
This commit adds discovery of
.npmrc
files in user's homedir.This is not a perfect fix as it doesn't merge multiple
.npmrc
filestogether as per #23954
but allows to fallback if no
.npmrc
file is discovered in the projectroot.