DEV Community

Discussion on: When not to use package-lock.json

Collapse
 
kgrosvenor profile image
kgrosvenor • Edited

Dependency lock files are for fast tracking your dependencies via a file cache, so it doesn't have to look through npm again to find them again, you are meant to commit it yes and i don''t think there is a case for not commiting it?

It also works the same on composer.

Why ignore his advise about that from the author? your PI pipeline versions will eventually mess up because you don't commit it...