Yarn 2 gitignore
![Yarn 2 gitignore](/content/images/size/w2000/2023/08/ignore.jpeg)
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:
![Buy Me A Coffee](https://cdn.buymeacoffee.com/buttons/v2/default-red.png)