catalog/pubspec_updates library
Classes
- PubspecUpdate
- A planned change to one pubspec.
Functions
-
planPubspecUpdates(
Project project) → List< PubspecUpdate> -
Plans the pubspec changes
dpk getmakes, without writing anything: -
workspaceGlobMembers(
String root, List< String> globs) → List<String> -
The member paths, relative to
rootwith/separators, thatglobsmatch: directories with a pubspec that hasresolution: workspace. -
writePubspecUpdates(
Iterable< PubspecUpdate> updates) → void - Writes every changed update. Each file is written to a temporary file first and then renamed, so an error never leaves a half-written pubspec.