Should I commit yarn.lock and package-lock.json files?

后端 未结 7 945
野趣味
野趣味 2020-12-12 12:15

We\'re using yarn for all our deterministic pkg installations but don\'t prevent the user from using npm - I\'m guessing having both these files will cause issues however. S

7条回答
  •  自闭症患者
    2020-12-12 13:10

    No, using both lock files simultaneously will most often result in inconsistencies in your dependency tree, especially when collaborating on a team. Ignoring one lock or the other is a simple solution. Just make sure your team understands and agrees with this change.

提交回复
热议问题