-
Notifications
You must be signed in to change notification settings - Fork 712
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
[npm] What should we do about lockfiles? #93
Comments
Whether lockfiles make sense for libraries is debatable, but npm seems pretty opinioned on this -- according to the manual they cannot be published. Therefore, we could safely ignore them. https://github.com/npm/npm/blob/v5.0.0/doc/files/package-lock.json.md
|
Cool, do we want to add them to the git ignore then? |
I'm cautiously positive that they can be ignored. /cc @hshoff |
@ljharb any thoughts on how libraries should treat |
@hshoff Only apps should have lockfiles. Libs/packages should add |
@ljharb makes sense thank you! |
Right now it doesn't seem that there's any
package-lock.json
files in any of the packages. But thelerna exec npm install
will create a lockfile in each package.Npm claims that we should commit these. Is there any reason we haven't?
Could we either add them or add them to the .gitignore?
The text was updated successfully, but these errors were encountered: