Skip to content

chore: ignore package-lock.json#1458

Merged
nickuraltsev merged 1 commit intoaxios:masterfrom
JustinBeckwith:nopgklock
Apr 7, 2018
Merged

chore: ignore package-lock.json#1458
nickuraltsev merged 1 commit intoaxios:masterfrom
JustinBeckwith:nopgklock

Conversation

@JustinBeckwith
Copy link
Copy Markdown
Contributor

So package-lock.json is a funny thing. It locks the exact version of npm dependencies down, ensuring that every build gets the same exact deps.

On the surface, this sounds great. If you're an end-user building a web app, it's fantastic. However, if you're a library author it's not so great. When end users npm install axios, they're going to get the latest version of transitive dependencies in accordance to semver, ignoring what's actually in our package-lock.json. This means that while things are locked down and cheery in this repository, end users may actually be getting errors.

This is something we debated intensely at Google, and to be honest - there are good arguments for both. Since there's currently no package-lock.json in this repo, I'm choosing to just go ahead and ignore it. I'd love to hear others opinions!

@nickuraltsev
Copy link
Copy Markdown
Contributor

Sure, let's ignore it for now.

@nickuraltsev nickuraltsev merged commit 0d110da into axios:master Apr 7, 2018
@axios axios locked and limited conversation to collaborators May 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants