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

fix(npmrc): merge .npmrc in user's homedir and project #27119

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

jiawei397
Copy link

This PR will merge project and user's homedir .npmrc

  • per-project config file (/path/to/my/project/.npmrc)
  • per-user config file (~/.npmrc)

Normally, after logging in using npm, the token is stored in the user's home, and in the current project, we only need to switch the image to avoid the key being submitted.

Such as the user home dir .npmrc:

@denotest:registry=http://localhost:4261/
//localhost:4261/:_authToken=private-reg-token
@denotest2:registry=http://localhost:4262/
//localhost:4262/:_authToken=private-reg-token2

the project .npmrc just be :

@denotest:registry=http://localhost:4261/
@denotest2:registry=http://localhost:4262/

@CLAassistant
Copy link

CLAassistant commented Nov 28, 2024

CLA assistant check
All committers have signed the CLA.

@bartlomieju bartlomieju added this to the 2.2.0 milestone Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants