Skip to content

Add docs/package.lock.json to gitignore #485

Answered by krau5
kotAPI asked this question in Q&A
Discussion options

You must be logged in to vote

Is it a norm? do we ship package.lock.json along with the project or let members have their own version of package.lock file

Lock file (yarn.lock, package-lock.json, etc.) must be included in the project to ensure everyone uses the same dependency versions. If the lock file is removed:

  1. Chances of unpredictable conflicts will be increased by far
  2. Dependencies might differ across potential users/devs
  3. If the dependencies are different, code's behavior is also unpredictable

Replies: 2 comments 1 reply

Comment options

kotAPI
Oct 27, 2024
Maintainer Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@kotAPI
Comment options

kotAPI Dec 2, 2024
Maintainer Author

Answer selected by kotAPI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #463 on October 27, 2024 07:28.