Do I commit the package-lock.json file created by npm 5?
Asked 07 September, 2021
Viewed 2.4K times
  • 55
Votes

npm 5 was released today and one of the new features include deterministic installs with the creation of a package-lock.json file.

Is this file supposed to be kept in source control?

I'm assuming it's similar to yarn.lock and composer.lock, both of which are supposed to be kept in source control.

12 Answer