I recently upgraded to Yarn2 and added the following to my .gitignore
.yarn/*
!.yarn/cache
!.yarn/releases
!.yarn/plugins
!.yarn/sdks
!.yarn/versions
I still use nodeLinker: node-modules, however when I push my code, I am pushing the .yarn/cache folder with new files whenever I upgrade packages.
Should this folder be pushed to Git or just in my machine? Please advice.