Yarn 2 gitignore
Yarn 2 gitignore content
Default option (non-zero install + node_modules linker)
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
node_modules
node_modules
entry can be removed unless you are using nodeLinker: node-modules
option in .yarnrc.yml
.
Zero-install option
If you have no idea what zero-install is, just ignore this.
.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
Reference: