lerna VS turborepo

Compare lerna vs turborepo and see what are their differences.

lerna

:dragon: Lerna is a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository. (by lerna)

turborepo

Incremental bundler and build system optimized for JavaScript and TypeScript, written in Rust – including Turborepo and Turbopack. [Moved to: https://github.com/vercel/turbo] (by vercel)
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
lerna turborepo
162 80
35,681 14,873
0.2% -
8.6 9.8
5 days ago almost 2 years ago
TypeScript Rust
MIT License Mozilla Public License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

lerna

Posts with mentions or reviews of lerna. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-28.
  • Add Step-up Authentication Using Angular and NestJS
    4 projects | dev.to | 28 Mar 2024
    Open the project up in your favorite IDE. Let's take a quick look at the project organization. The project has an Angular frontend and NestJS API backend housed in a Lerna monorepo. If you are curious about how to recreate the project, check out the repo's README file. I'll include all the npx commands, CLI commands, and the manual steps used to create the project.
  • Things I learned while building projects with NX
    5 projects | dev.to | 18 Mar 2024
    Lerna currently maintained by Nx team
  • tsParticles 3.0.0 is out. Breaking changes ahead.
    3 projects | dev.to | 4 Dec 2023
  • Nx 16.8 Release!!!
    5 projects | dev.to | 6 Sep 2023
    On Netlify's enterprise tier, approximately 46% of builds are monorepos, with the majority leveraging Nx and Lerna. Recognizing this trend, Netlify has focused on enhancing the setup and deployment experiences for monorepo projects. In particular they worked on an "automatic monorepo detection" feature. When you connect your project to GitHub, Netlify automatically detects if it's part of a monorepo, reads the relevant settings, and pre-configures your project. This eliminates the need for manual setup. This feature also extends to local development via the Netlify CLI.
  • Mocha/Chai with TypeScript (2023 update)
    3 projects | dev.to | 12 Aug 2023
  • Help with library implementation in a big webapp
    2 projects | /r/webdev | 26 Jun 2023
    This is the exact problem monorepos were born to solve. Not only will a monorepo let you share UI components, you'll be able to gradually add shared application logic as well (for instance, do all of your apps have their own logic for connecting to a database? you could roll that into a shared library with a monorepo). There are a lot of tools for accomplishing this in JS, but probably the most popular is lerna, which is built on top of NX (though lots of teams roll their own monorepo in nx without lerna, which IMO is a totally valid option).
  • How to Build and Publish Your First React NPM Package
    8 projects | dev.to | 9 Jun 2023
    To begin, you need to prepare your environment. A few ways to build a React package include tools like Bit, Storybook, Lerna, and TSDX. However, for this tutorial, you will use a zero-configuration bundler for tiny modules called Microbundle.
  • Utility for making sure that I'm using the right `@types/react`
    2 projects | /r/typescript | 5 Jun 2023
    If so, are you using a monorepo tool like Nx or Lerna? If not, start there and see if it solves your problem.
  • [AskJS] Is there a silver bullet for consuming Typescript libraries in a Monorepo?
    5 projects | /r/javascript | 9 May 2023
    I mean I don't know what your monorepo looks like, but for example infernojs (actually written with typescript) uses lerna, and lerna seems simpler than typescript references
  • Understanding npm Versioning
    3 projects | dev.to | 4 Apr 2023
    Tools for publishing, such as Lerna (when using the --conventional-commit flag), follow this convention when incrementing package versions and generating changelog files.

turborepo

Posts with mentions or reviews of turborepo. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-09-25.
  • Rewriting Rust
    23 projects | news.ycombinator.com | 25 Sep 2024
    > Look at the dependency tree for a next

    Looks ok to me: https://npmgraph.js.org/?q=next

    Ironically, most of the dependencies are actually Rust crates used by swc and turbopack [1]. Try running cargo tree on either of those crates, it's enlightening to say the least. And of course, Node has a built in file watcher, and even the most popular third party package for file watching (Chokidar) has a single dependency [3].

    [1] https://github.com/vercel/turborepo/blob/main/Cargo.toml

    [2] https://github.com/swc-project/swc/blob/main/Cargo.toml

    [3] https://npmgraph.js.org/?q=chokidar

  • Learn how to build a monorepo in Next.js
    4 projects | dev.to | 8 Dec 2022
    Turborepo: Smart build system for JavaScript/TypeScript monorepos
  • Building a full-stack TypeScript application with Turborepo
    6 projects | dev.to | 30 Nov 2022
    We’ve only scratched the surface of what we can do with Turborepo. You can find more examples in the Turborepo examples directory on GitHub. Skill Recordings on GitHub is also another great resource that has been around since Turborepo was first released.
  • 10 Trending Github repositories / October, 27 2022
    9 projects | dev.to | 27 Oct 2022
    git clone https://github.com/vercel/turborepo.git
  • Component composition
    2 projects | /r/reactjs | 13 Oct 2022
    I use https://turborepo.org/ to facilitate my monorepo. Essentially it's a way of structuring your configs, UI; apps etc and you consume each like an internal package. I find benefits for this as the kinds of sites I make will generally have an internal app, an admin panel and a marketing site. I can write UI, config etc in one place and consume them over the three projects to keep everything consistent.
  • How I Monorepo
    5 projects | dev.to | 9 Oct 2022
    The latest addition to the Composer Suite monorepo, Turborepo optimizes monorepo workflows by caching build artifacts. This may sound a little abstract and boring, but what this actually means is that when you build something within your monorepo, Turborepo will make sure only the things that it depends on are rebuilt; everything else will be retrieved from a cache that either lives on your local computer, or a remote cache server. Adding Turborepo to the Composer Suite monorepo pretty much halved CI build times, but it was also a way to teach Vercel, which I use for hosting the various example apps in the repo, to only actually deploy the ones that have changed since their last deployment. And that's really cool!
  • What is the easiest way to use shared code with multiple Vue3 projects?
    2 projects | /r/vuejs | 8 Oct 2022
  • The different strategies to building a cross-platform app
    36 projects | dev.to | 6 Oct 2022
    NB: "Turbo" also has other meanings in a React Native context, so don't confuse Hotwire Turbo Native with Turbo Modules or Turborepo (as used in create-t3-turbo, mentioned later here).
  • Minimal Nextjs-Typescript boilerplate
    2 projects | /r/nextjs | 3 Oct 2022
    Personally I just use this: https://github.com/vercel/turborepo/tree/main/examples/with-tailwind
  • Shared packages between React Native and Web project in monorepo.
    3 projects | dev.to | 2 Oct 2022
    To set up our monorepo we will use Turborepo which will take care of installing the basic parameters for us.

What are some alternatives?

When comparing lerna and turborepo you can also consider the following projects:

nx - Smart Monorepos · Fast CI

changesets - 🦋 A way to manage your versioning and changelogs with a focus on monorepos

vite - Next generation frontend tooling. It's fast!

pnpm - Fast, disk space efficient package manager

rushstack - Monorepo for tools developed by the Rush Stack community

webpack - A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.

storybook - Storybook is the industry standard workshop for building, documenting, and testing UI components in isolation

single-spa - The router for easy microfrontends

tsdx - Zero-config CLI for TypeScript package development

husky - Git hooks made easy 🐶 woof!

create-react-app - Set up a modern web app by running one command.

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured

Did you konow that TypeScript is
the 2nd most popular programming language
based on number of metions?