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

Adding support for .yarnrc.yml files. #28

Closed dannyvv closed 1 month ago

dannyvv commented 1 month ago

This change factors commonalities between .npmrc and .yarnrc files into a common base class FileProvider. This allowed for the addition of .yarnrc.yml files without duplicating code.

This caused some of the logic to move around a bit. The biggest change for the npmrc is a more genereralized approach to reading, writing and updating the file without regular expressions and multiple passes.

Fixes: #4

jcreamer898 commented 1 month ago

You also might wanna just go ahead and run yarn prettier --write src/**/*.ts as I saw some formatting and missing ;'s etc.

dannyvv commented 1 month ago

You also might wanna just go ahead and run yarn prettier --write src/**/*.ts as I saw some formatting and missing ;'s etc.

I'll add 'lint' support and run prettier seperately.