catalog/pubspec_updates library

Classes

PubspecUpdate
A planned change to one pubspec.

Functions

planPubspecUpdates(Project project) → List<PubspecUpdate>
Plans the pubspec changes dpk get makes, without writing anything:
workspaceGlobMembers(String root, List<String> globs) → List<String>
The member paths, relative to root with / separators, that globs match: directories with a pubspec that has resolution: 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.