DEV Community

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

Collapse
 
rickvandermey profile image
Rick van der Meij • Edited

It doesn't matter if you are developing in a team or solo. The package lock provides a clear vision which version of dependencies and dependencies of dependencies are being used,and sets them to a fixed version. You do not have any control of deeper dependencies without a package lock which can be reviewed. npm i updates dependencies without you noticing, that's why you use a npm ci when you want to rebuild your node modules.

When updating all packages you can create a specific feature and check those changes. Or automate it if you have decent test