affected vs Melos
affected
github.comMelos
melos.invertase.devSide by side
| Figure | affected | Melos |
|---|---|---|
| Price from | Free | — |
| Free plan | Yes | — |
| Free trial | — | — |
| Open source | — | — |
| Windows | Yes | Yes |
| macOS | Yes | Yes |
| Linux | Yes | Yes |
| iOS | — | Yes |
| Android | — | Yes |
| Plans published | 1 | 0 |
| Spec score · Monorepo Management Tools | 8.1 (#10) | 7.7 (#20) |
| License | The repository identifies the software as MIT licensed. | The Melos repository is licensed under the Apache License, Version 2.0. |
| Purpose | affected detects which monorepo packages are affected by Git changes and runs tests or other commands on those packages. | Melos is a CLI tool for managing Dart and Flutter projects with multiple packages. |
Plans
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.
Melos
Melos is a command-line tool for managing Dart and Flutter projects, including workspaces with multiple packages in a monorepo. It links local packages, installs workspace dependencies and can synchronize shared dependencies and run lifecycle scripts during bootstrap. Commands can run across packages simultaneously and be narrowed by scope, category, changed packages, Flutter dependencies or package dependencies. Melos can also list local packages and their dependencies.
The tool automates package versioning and changelog generation, and can publish packages to pub.dev. It supports CI/CD workflows and provides a GitHub Action; single-package projects can use it for versioning, publishing and changelogs too. IntelliJ support generates project modules and run configurations, while the VS Code extension offers configuration validation, autocompletion, tasks and package graphs. Melos is free, installs globally through Dart Pub and supports Pub as its package manager. Version 8.x.x requires Dart SDK 3.9.0 or newer. Publishing requires permission for all packages and a machine authenticated with Pub; dry-run is enabled by default. IntelliJ integration is documented only for Melos v6 and lower.