Do we really need to ignore yarn.lock?
barabadzhi opened this issue ยท 3 comments
barabadzhi commented
Hi, guys!
Here we are ignorring the yarn.lock
file:
But this is a misuse of this file according the documentation:
... consistent installs across machines ...
... To do this Yarn uses ayarn.lock
...
Yarn Docs
This is good to have .lock files checked-in for consistency and speed.
PS: Thanks for the course, its awesome. ๐
khw1031 commented
hmm. It is kind of weird. .gitignore
shouldn't exclude yarn.lock
file. ๐
fpigeonjr commented
๐ right the .gitignore
from create-react-app includes:
.idea/
.vscode/
node_modules/
build
.DS_Store
*.tgz
my-app*
template/src/__tests__/__snapshots__/
lerna-debug.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
/.changelog
no mention of the yarn.lock
veronikabenkeser commented
Thank you for flagging! Fixed.