© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Robert
Coder and Dreamer
I've read the advice to put yarn.lock under version control; for it helps to maintain the same structure of node_modules for every system. npm has shrinkwrap, how would you say is it different from yarn.lock?
Konstantin Raev
yarn.lock is your source of truth, better keep it in version control to get reproducible builds.
We decided not to follow shrinkwrap json format because it is hard to read and review.
There are a few differences how it stores deep trees and that yarn.lock entries are sorted thus making git conflicts less common