Pub Workspaces
summary
Pub workspaces is now built into Dart Pub and links local packages automatically, used here to replace path overrides in a ~40‑package Flame monorepo; it gives shared dependency resolution and fixes analyzer slowness but requires explicitly listing every package (no globs yet), which became a long, forgettable workspace file. Melos v7 delegates linking to pub workspaces and still provides automatic versioning from conventional commits, automatic changelog generation and scripted multi‑package publish, and recommends Dart 3.9+ for correctness.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 1:48Flame's package evolution
- 3:54Monorepo for Dart projects
- 6:50Pub Workspaces overview
- 8:35Setting up workspace
- 11:50Dart SDK compatibility
- 12:53Migrating from Melos
- 13:59Glob workspace config
- 14:44Melos features
- 16:30Melos in non-monorepo
- 17:33Semantic versioning
- 18:58Changelogs from commits
- 19:41Versioning with Melos
- 20:44Q&A
related talks
22mOne Repo to Rule Them All
29mMonorepos, are they right for you?
46mExploring the power of monorepos: When and why to use them
31mFlutter-workspace Tool by Example - Setup for AGL Terrific Trout
44mBuilding Pieces for Developers Our Journey with Flutter and Dart
40mDart: Productive, Fast, Multi-Platform - Pick 3
45mBuilding Products Full-Stack with Dart and Flutter
49mFlutter Team Leadership Panel
