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

后端 未结 7 892
野趣味
野趣味 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.

    0 讨论(0)
提交回复
热议问题