I understood that package-lock.json is useful to block the dependencies versions in order to
Describe a single representation of a dependency tree such that teammates, deployments, and continuous integration are guaranteed to install exactly the same dependencies.
However if I run npm update
, my dependencies are updated and package-lock.json versions too. So in the future, I can no longer reproduce the same original tree from package-lock.json. It doesn't serve its purpose, or am I losing something?