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.
@contra, wouldn't you want package-lock.json in GIT, so that you get reproducible installs for when developers make contributions? Rather, add package-lock.json to .npmignore, so it's not included in the package.
The reason will be displayed to describe this comment to others. Learn more.
@simonua There are many opinions about this, but in my projects I never include package-lock (mostly because I don't like the extra noise these add to diffs, and the annoyance of updating it). I think most people share the opinion that package-lock is only useful for projects, not packages.
239c2b6
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.
@contra, wouldn't you want
package-lock.json
in GIT, so that you get reproducible installs for when developers make contributions? Rather, addpackage-lock.json
to.npmignore
, so it's not included in the package.239c2b6
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.
@simonua There are many opinions about this, but in my projects I never include package-lock (mostly because I don't like the extra noise these add to diffs, and the annoyance of updating it). I think most people share the opinion that package-lock is only useful for projects, not packages.
239c2b6
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 got you. Thank you for the response, @contra.