Skip to content
pubscout

melos

8.10.1, released 14 days ago by invertase.io

A tool for managing Dart and Flutter monorepos with script execution, versioning, and publishing.

$ flutter pub add melos
Source repository

What it does

Melos optimizes workflows for managing multi-package repositories and single packages using git and Pub. It runs scripts, tests, and analysis across packages, and handles automated versioning and changelogs via Conventional Commits.

AI-written summary of version 8.10.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are managing a multi-package Dart or Flutter monorepo
  • You need automated versioning and changelog generation using Conventional Commits
  • You want to run custom scripts and commands across multiple packages concurrently

Skip it when

  • You prefer manual versioning and publishing workflows
  • You do not use Dart or Flutter projects

Strengths

  • Integrates seamlessly with pub workspaces and Conventional Commits
  • Provides advanced package filtering options for targeted command execution
  • Supports both monorepos and single-package projects

Weaknesses

  • Requires updating configuration and workspace structure when migrating between major versions

Setup

Kind
Pure Dart
Effort
Medium
Code generation
No
Direct dependencies
25

Add melos as a dev dependency in your root pubspec.yaml and configure the workspace and melos options.

name: my_workspace
publish_to: none
workspace:
  - packages/helper
dev_dependencies:
  melos: ^8.0.0
melos:
  command:
    version:
      versionPrivatePackages: true

Alternatives

Packages that do the same job and could replace melos.

  • emulators

    A utility library to automate mobile emulators and manage screenshots.

Works with

Packages commonly used together with melos: ones it builds on, ones built on it, and its own family.