Live data from Hacker News

Yarn – A new package manager for JavaScript

code.facebook.com

1–10 of 486 posts

Re: Yarn – A new package manager for JavaScript

#3
It looks like this addresses the biggest issues people have with npm's CLI, and it's coming from such huge names: Facebook, Google, and Tilde. Reproducible builds are a _huge_ issue, and this gives you that. Looks great!

One interesting little tidbit I found from diving into the source:

  https://github.com/yarnpkg/yarn/blob/master/src/constants.js#L15

  https://github.com/yarnpkg/yarn/blob/master/src/registries/yarn-registry.js
It's not mentioned in the post, but looks like they're running their own registry as well...

Oh! And open governance: https://github.com/yarnpkg/rfcs !

Re: Yarn – A new package manager for JavaScript

#4

It looks like this addresses the biggest issues people have with npm's CLI, and it's coming from such huge names: Facebook, Google, and Tilde. Reproducible builds are a _huge_ issue, and this gives you that. Looks great! One interesting little tidbit I found from diving into the source: https://github.com/yarnpkg/yarn/blob/master/src/constants.js#L15 https://github.com/yarnpkg/yarn/blob/master/src/registries/yarn-reg…

Huh, interesting! I thought this was going to just be a client. I wonder if it resolved to npm's servers or something.

Re: Yarn – A new package manager for JavaScript

#7

It looks like this addresses the biggest issues people have with npm's CLI, and it's coming from such huge names: Facebook, Google, and Tilde. Reproducible builds are a _huge_ issue, and this gives you that. Looks great! One interesting little tidbit I found from diving into the source: https://github.com/yarnpkg/yarn/blob/master/src/constants.js#L15 https://github.com/yarnpkg/yarn/blob/master/src/registries/yarn-reg…

Oh hi Steve! https://registry.yarnpkg.com is just a proxy to the normal npm registry provided by Cloudflare so we can add additional caching and work on network performance (lots of stuff we could layer on top). It should hopefully help those in China as well which would be awesome. But everything you do still lives on the normal npm registry.

Re: Yarn – A new package manager for JavaScript

#10
"Linking: Finally, Yarn links everything together by copying all the files needed from the global cache into the local node_modules directory."

Stop copying stuff. Just make it global and link.

Next step is to make packages immutable and signed.

I'm happy with this step and the fact that facebook will be able to push this.

Post reply on HN