Skip to content

Commit 6fcf3a2

Browse files
committed
support latest release of package:graphs
1 parent cdff577 commit 6fcf3a2

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

bin/multipack.dart

+4-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ import "package:multipack/package.dart";
77
void main(List<String> arguments) async {
88
final dependencyGraph = await getPackageGraph(Directory.current);
99

10-
final orderedPackages =
11-
dependencyGraph.sortedTopologicalOrdering!.toList().reversed.toList();
10+
final topologicalGraph =
11+
dependencyGraph.sortedTopologicalOrdering ?? <Package>{};
12+
13+
final orderedPackages = List.of(topologicalGraph).reversed.toList();
1214

1315
final packageNames = orderedPackages
1416
.map(

lib/commands/pubspec/hard_override.dart

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ class HardOverrideCommand extends MultipackCommand {
1919
FutureOr<int> runOnPackage(Package package) async {
2020
try {
2121
MapEntry<String, DependencyReference> map(
22-
String key, DependencyReference ref,) {
22+
String key,
23+
DependencyReference ref,
24+
) {
2325
if (ref is! HostedReference) return MapEntry(key, ref);
2426

2527
final localPackage = packages.firstWhereOrNull(

pubspec.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: multipack
2-
description: A tool for monorepo management. Link local packages and execute commands in topological order.
3-
version: 0.3.1
2+
version: 0.3.2
43
homepage: https://github.com/gql-dart/multipack
5-
environment:
6-
sdk: '>=2.12.0 <4.0.0'
4+
description: A tool for monorepo management. Link local packages and execute commands in topological order.
5+
environment:
6+
sdk: '>=3.0.0 <4.0.0'
77
dependencies:
88
ansicolor: ^2.0.0
99
args: ^2.0.0
@@ -14,7 +14,7 @@ dependencies:
1414
pub_semver: ^2.0.0
1515
pubspec: ^2.0.0
1616

17-
dev_dependencies:
17+
dev_dependencies:
1818
lint: ^2.0.0
1919
executables:
2020
multipack: null

0 commit comments

Comments
 (0)