gitignore
gitignore copied to clipboard
Update Yarn modern gitignore based on documentation
Reasons for making this change:
The ignored Yarn modern files are out of date and don't support zero-install (I made this opt-in so you still get standard installation by default).
Links to documentation supporting these rule changes:
https://yarnpkg.com/advanced/qa#which-files-should-be-gitignored
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.