DEV Community

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

Collapse
 
bitcod3r profile image
Guillermo Garcia

I agree with your arguments about why it should be a developer/maintainer responsibility to keep their dependencies at the latest versions and solve any issue related to some broken/buggy dependency version.

Perhaps npm needs to use a different approach to help us identify when an end-user runs ´npm install´ vs when a developer runs it.

To make this distinction viable we would propose two different kind of lock files. One for development usage and another for final usage (like packages that are themselves dependencies of other packages.).