You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
I'm just saying it's very contrary to the whole point of using Yarn. yarn.lock is only used by Yarn, it has no effect on anyone still using NPM. They both make use of package.json in the same way. But with a yarn.lock file, Yarn can more accurately install the exact same files that were installed when the lock file was generated. It's to reduce "works on my machine" errors.
25f5778
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're not supposed to ignore lock files, you're supposed to commit them.
25f5778
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
25f5778
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm just saying it's very contrary to the whole point of using Yarn.
yarn.lock
is only used by Yarn, it has no effect on anyone still using NPM. They both make use ofpackage.json
in the same way. But with ayarn.lock
file, Yarn can more accurately install the exact same files that were installed when the lock file was generated. It's to reduce "works on my machine" errors.