Skip to content

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

nickserv
Copy link

@nickserv nickserv commented Jul 21, 2020

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

@redxtech
Copy link

I came here to make the exact same pull request. I'm surprised they haven't merged this yet.

@nickserv
Copy link
Author

nickserv commented Sep 21, 2020

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?

@nickserv nickserv changed the title Update yarn 2 gitignore based on documentation Update yarn modern gitignore based on documentation Aug 5, 2022
@nickserv nickserv changed the title Update yarn modern gitignore based on documentation Update Yarn modern gitignore based on documentation Aug 5, 2022
@Maxime-p
Copy link

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.*

@nickserv
Copy link
Author

@Maxime-p Thanks for the update, now using this.

Copy link

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 😄

@github-actions github-actions bot added the stale label May 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants