Facebook Updates New JavaScript Package Manager

This has become a popular tool in a short period of time. More than 175,000 Github projects have used Yarn to manage their shared code libraries atop Facebook and others.


Facebook is becoming legendary for building new appdev tools and setting them free into the open source community. New developers coming into the business could do much worse than to check out Facebook's Github contributions.

The social network, which releases new software tools every few weeks, on Sept. 7 announced the v1.0 release of Yarn, a JavaScript Package Manager the company open sourced last October in partnership with Google, Exponent and Tilde.

This has become a popular tool in a short period of time. More than 175,000 Github projects have used Yarn to manage their shared code libraries on top of the Facebook, Instagram, Oculus and WhatsApp code bases that also use it.

The efficiency Yarn brings to engineers working with distributed code bases gives them the ability to focus more on their coding work than managing their code, Facebook said. This version includes a slew of new technical capabilities built by both Facebook and core contributors from the Yarn community, including:

  • Yarn Workspaces: Workspaces gives companies of all sizes the ability to effectively transition their code base into a mono-repository, which helps ensure that the latest code is always used on engineering projects.
  • Auto-Merging of LockFiles: Enables engineers to avoid any potential conflicts when working on fast-paced projects with multiple contributors pulling the same code by automatically resolving the merge conflict.
  • Selective Version Resolutions: Streamlines version control process for engineers, ensuring that the code they are working with has the latest security updates and bug fixes, regardless of where those updated resolutions first occurred.

For more information, see this blog post.

Chris Preimesberger

Chris J. Preimesberger

Chris J. Preimesberger is Editor-in-Chief of eWEEK and responsible for all the publication's coverage. In his 15 years and more than 4,000 articles at eWEEK, he has distinguished himself in reporting...