I don't understand how I can keep the same dependencies version in my package.json when I update all my dependencies by running npm update
on different branches.
E.g I have 3 branches: dev
staging
prod
If today I run npm update
on the dev
branch and tomorrow I run npm update
on the staging
branch I can get a diff for certain packages e.g vuetify version 2.5.0 in dev
and 2.5.1 in staging
.
What is the best way to get the same version in all branches when I run an update on a certain branch ?