gitignore icon indicating copy to clipboard operation
gitignore copied to clipboard

Update Yarn modern gitignore based on documentation

Open nickserv opened this issue 4 years ago • 2 comments

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

nickserv avatar Jul 21 '20 21:07 nickserv

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

redxtech avatar Aug 20 '20 19:08 redxtech

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 avatar Sep 21 '20 22:09 nickserv

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 avatar Mar 21 '23 08:03 Maxime-p

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

nickserv avatar Mar 21 '23 10:03 nickserv