-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove yarn.lock from repo #33
Comments
Relevant to the discussion, I found this article quite helpful - http://jpospisil.com/2017/06/02/understanding-lock-files-in-npm-5.html
|
@sudo-suhas great read! but not conclusive... It just tell the pros and cons of having a lock file.
So is it a yes to remove it on pre-commit? |
That's one of the reasons I liked it better.
Not sure. Maybe solve problems when you start facing them? Nothing wrong with having an iterative process. |
Just realized, dunno if you noticed, but because of the |
https://docs.npmjs.com/files/package.json#files
|
Yeah, but the issue is how to catch errors early when we develop the plugin. It's what CRA is doing, so, I just think it's nice if we follow it :) |
To be honest, I just not getting it. We don't want to have yarn.lock in the repo? |
So here is what I understand:
According to Kat Marchán, one of the maintainers of npm, the current implementation of |
Thanks for the in-depth explanation @sudo-suhas, I understands now. I removed the file. Thanks for the heads up, @viankakrisna |
It's nice if we have a pre-commit hook that removes the file so no one can accidentally commit it. :) |
I'm in |
How is a pre-commit hook better/different than just adding it to the git ignore file? |
gitignore makes you not aware whether or not you have the file in the directrory. Not ignoring it means that that it would show up like a sore thumb when you run git status. See the linked thread on the first comment, it's a pr specifically ignoring yarn.lock. A pre commit hook is just another safety net to avoid accidentally commiting the file |
Relevant comment
facebook/create-react-app#2014 (comment)
Possible solution
facebook/create-react-app#2700
The text was updated successfully, but these errors were encountered: