Skip to content

Commit

Permalink
Use "dart pub publish" instead of "pub publish" (#1698)
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 authored May 20, 2022
1 parent fa0d2fb commit 561fe25
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tool/grind/subpackages.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,15 @@ Future<void> deploySubPackages() async {
File(entry.path).writeAsStringSync(File(target).readAsStringSync());
}

log("pub publish ${pubspec.name}");
log("dart pub publish ${pubspec.name}");
var process = await Process.start(
p.join(sdkDir.path, "bin/pub"), ["publish", "--force"],
p.join(sdkDir.path, "bin/dart"), ["pub", "publish", "--force"],
workingDirectory: package);
LineSplitter().bind(utf8.decoder.bind(process.stdout)).listen(log);
LineSplitter().bind(utf8.decoder.bind(process.stderr)).listen(log);
if (await process.exitCode != 0) fail("pub publish ${pubspec.name} failed");
if (await process.exitCode != 0) {
fail("dart pub publish ${pubspec.name} failed");
}

var response = await client.post(
Uri.parse("https://api.github.com/repos/sass/dart-sass/git/refs"),
Expand Down

0 comments on commit 561fe25

Please sign in to comment.