microsoft / ado-npm-auth

This package can automatically use the azureauth CLI to fetch tokens and update a user's .npmrc file for authenticating to Azure DevOps npm feeds.
MIT License
9 stars 7 forks source link

Support discovering `.npmrc` location when repo is managed by Rush #19

Open jonchurch opened 4 months ago

jonchurch commented 4 months ago

Closes #18

This adds support for discovering .npmrc in alternative locations if not found at repo root.

The alternative I have added is Rush's default .npmrc location.

Slight refactor, to split out resovling a .npmrc fromt the function that also attempts to read data from it.

jonchurch commented 4 months ago

Meant to open as draft, we should discuss this and I want to test it further before landing

prabirshrestha commented 4 weeks ago

Any updates on this? Would love to have this PR in. This would make it easy for rush users.