Do I need the registry defined in .npmrc file when I have the publishConfig defined in package.json?

Viewed 1725

I have the publishConfig defined in the package.json to publish to a private repository. Do I need the .npmrc file with custom registry as well for publishing?

1 Answers

I believe no. As per the documentation, npmrc has no effect when you publish your repository.

Related