Skip to content
SPECIFICTION
Get listed

affected vs Lerna

affected

github.com

Lerna

lerna.js.org

Side by side

FigureaffectedLerna
Price fromFree$29/mo
Free planYesYes
Free trial—Yes
Open source——
Web—Yes
WindowsYesYes
macOSYes—
LinuxYes—
Self-hosted—Yes
Plans published13
Spec score · Monorepo Management Tools8.1 (#10)8.1 (#12)
SupportThe README welcomes contributions and directs users to the repository's GitHub issues.The Nx Cloud Hobby plan includes community support, while the Team plan includes email support and Enterprise includes dedicated support and SLAs.

Plans

affected

  • affectedFree

affected pricing →

Lerna

  • HobbyFree
  • Team$29 a month
  • EnterprisePriced on request

Lerna pricing →

In their own words

affected

affected is a free, MIT-licensed command-line tool for identifying monorepo packages touched by Git changes and running tests or other commands on those packages. It traces transitive dependencies and can explain the chain from a change to an affected package. The README says it detects project type and dependency graph automatically to get started without configuration. Supported ecosystems include Cargo, npm, pnpm, Yarn, Bun, Go, Python, Maven, Gradle, .NET, Swift, Dart/Flutter, Elixir, and Scala/sbt. CLI commands cover listing packages, testing, running commands, viewing graphs, CI, initialization, and watch mode. Execution options include parallel jobs, dry-run previews, timeouts, package filters, and skip patterns. Outputs include JSON, JUnit XML, CI formats, shell completions, dependency trees, and DOT graphs. GitHub Actions support includes a setup action and dynamic job matrices; a companion action can post and update pull request comments with affected packages and reasons. Installation options include Homebrew, Python and language package managers, GitHub Actions, and release binaries. It runs on Linux, macOS, and Windows.

Visit github.com

Lerna

Lerna is a free, open-source build system for managing and publishing JavaScript and TypeScript packages from one repository. It runs commands across projects in an efficient order and can parallelize tasks, cache results, and distribute work across machines. When task files and terminal output are already in its computation cache, Lerna can restore them instead of rerunning the task. It manages package versioning and npm publishing, with fixed or independent versioning workflows, and includes an interactive graph for viewing workspace structure and dependencies. Lerna uses Nx to identify workspace packages and dependencies and to run scripts with parallelism, caching, and distribution. It supports npm, yarn, pnpm, and bun; dependency installation and linking should be handled through those package managers’ workspace features. Nx Cloud has a free Hobby plan, a Team plan at $29 a month, and Enterprise with custom pricing. For closed-source projects, Nx Cloud provides the first 500 computation hours per month free, then charges $1 per computation hour. Its Hobby plan includes 50,000 credits monthly, five contributors, 10 concurrent CI connections, and community support.

Visit lerna.js.org