Skip to content

Adding support for .yarnrc.yml files. #28

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

Merged
merged 3 commits into from
Jul 22, 2024

Conversation

dannyvv
Copy link
Member

@dannyvv dannyvv commented Jul 17, 2024

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

@dannyvv dannyvv force-pushed the pr/AddYarnRcSupport branch from 433cf1a to 4308e49 Compare July 18, 2024 17:13
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.
@dannyvv dannyvv force-pushed the pr/AddYarnRcSupport branch 3 times, most recently from 442b318 to 1ea2779 Compare July 18, 2024 17:41
mismatch in lock file between pnpm 8 and 9
@dannyvv dannyvv force-pushed the pr/AddYarnRcSupport branch from 1ea2779 to 99772a8 Compare July 18, 2024 17:44
@dannyvv dannyvv requested a review from jcreamer898 July 19, 2024 17:06
Copy link
Collaborator

@jcreamer898 jcreamer898 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few minor things, but overall, WOW! Thanks a ton for this!

@jcreamer898
Copy link
Collaborator

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

@dannyvv dannyvv force-pushed the pr/AddYarnRcSupport branch from dfeb9b6 to 016784a Compare July 19, 2024 19:22
@dannyvv
Copy link
Member Author

dannyvv commented Jul 19, 2024

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.

@dannyvv dannyvv requested a review from jcreamer898 July 19, 2024 19:26
Copy link
Collaborator

@jcreamer898 jcreamer898 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

@jcreamer898 jcreamer898 merged commit f5b6367 into microsoft:main Jul 22, 2024
4 checks passed
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.

Support for yarn@>=2.0.0
2 participants