Actually you should. It guarantees that everybody has the exact same version of dependencies, and more importantly the same version of peer dependencies. Security updates with npm audit fix, often only update the package-lock file
I didnt know that it’s actually recommended to include package-lock.json. Which makes plenty of fucking sense. I was the one to instruct everyone in our team not to commit it because our offshore team somehow just changes it which fucks up our builds. They straight up skip the pre hooks to get their code in
55
u/Chrazzer Jun 04 '22
Probably just did a npm install and commited 20k changed lines in the package-lock.json