Posted 06/20/2025

package-lock.json in Git

We are commit package-lock.json only when we add or update some package. When you use npm install it will re-generate package-lock.json so to do not need have package-lock.json in unstaged use npm ci instead.

Benefits of commit package-lock.json: https://codefinity.com/blog/Should-I-Commit-package-lock.json