Yarn Berry Gitignore Settings

Published See discussion on Twitter

I often google something like yarn berry gitignore settings and I usually end up on the same old stack overflow post that then has an answer that links to a random place on the Yarn website, where I usually need to jump through another link or two until I find the right documentation here.

So I figured Iโ€™d speed up my own time to find this information and publish it for others to quickly find also!

Zero Installs:

.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

Without Zero Installs:

.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

Tags: