Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore package-lock.json files #79

Merged
merged 1 commit into from Jul 11, 2019
Merged

Ignore package-lock.json files #79

merged 1 commit into from Jul 11, 2019

Conversation

vine77
Copy link
Contributor

@vine77 vine77 commented Jul 10, 2019

@nmuldavin, I noticed that you un-ignored package-lock.json files in 4cb1363#diff-a084b794bc0759e7a6b77810e01874f2L3. I'm re-ignoring package-lock.json files for the time being due to Lerna not bumping package versions in package-lock.json, though there is a Lerna issue (lerna/lerna#1998) to address that.

There isn't total agreement on whether or not to commit package-lock.json for packages. In my most popular Stack Overflow answer (https://stackoverflow.com/a/44210813/2321452) 馃槅 I mentioned that Sindre Sorhus recommends using "Lockfiles for apps, but not for packages" but James Kyle recommends committing lockfiles for libraries/packages to make contributing easier. Either way, package-lock.json is not published so doesn't affect consumers. That Lerna issue is making diffs show up when there aren't real changes, which makes contributing more annoying, so I'm suggesting following Sindre's advice and ignoring package-lock.json files in design-system packages for now.

@vine77 vine77 requested a review from nmuldavin July 10, 2019 23:47
@nmuldavin
Copy link
Contributor

Interesting. I fall on the "we should commit package-lock for packages" side of that stack overflow thread, but of course we need lerna support. Let's follow that issue thread and update if / when it gets resolved.

Copy link
Contributor

@nmuldavin nmuldavin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vine77 vine77 merged commit a6c01f0 into master Jul 11, 2019
@vine77 vine77 deleted the remove-package-lock branch July 11, 2019 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants