-
Notifications
You must be signed in to change notification settings - Fork 83k
Update Yarn modern gitignore based on documentation #3479
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
base: main
Are you sure you want to change the base?
Conversation
I came here to make the exact same pull request. I'm surprised they haven't merged this yet. |
I find it tricky to make sure I have the right gitignore when using Yarn modern with GitHub since it's somewhat out of date. Is there anything we can do to help get this merged? |
When you init a new project with Yarn, the default .gitignore generated is .yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
# Swap the comments on the following lines if you don't wish to use zero-installs
# Documentation here: https://yarnpkg.com/features/zero-installs
!.yarn/cache
#.pnp.* |
@Maxime-p Thanks for the update, now using this. |
This PR is stale because there have been no updates in 90 days. It will close after 180 days of inactivity. Leave a comment if you want to keep it open 😄 |
Reasons for making this change:
The ignored Yarn modern files are out of date and don't support zero-install.
Links to documentation supporting these rule changes:
https://yarnpkg.com/advanced/qa#which-files-should-be-gitignored