Should I commit the yarn.lock file and what is it for?

Yes, you should check it in, see Migrating from npm What is it for? The npm client installs dependencies into the node_modules directory non-deterministically. This means that based on the order dependencies are installed, the structure of a node_modules directory could be different from one person to another. These differences can cause works on my … Read more