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
11 stars 9 forks source link

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

Closed jonchurch closed 2 months ago

jonchurch commented 7 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 7 months ago

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

prabirshrestha commented 3 months ago

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

jonchurch commented 2 months ago

This PR is not nedded anymore since you can pass the .npmrc path.

Im using npm exec ado-npm-auth@^0.1.11 -- -c common/config/rush/.npmrc

landed in https://github.com/microsoft/ado-npm-auth/pull/31