Skip to content

Commit

Permalink
Run formatter directly in grind.dart (#1654)
Browse files Browse the repository at this point in the history
grinder's Pub class is broken in 2.17 (see google/grinder.dart#385), so we need to run the formatter directly.
  • Loading branch information
jathak committed Mar 18, 2022
1 parent 33f18c4 commit 0db7ff2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tool/grind.dart
Expand Up @@ -67,8 +67,8 @@ void all() {}

@Task('Run the Dart formatter.')
void format() {
Pub.run('dart_style',
script: 'format', arguments: ['--overwrite', '--fix', '.']);
run('dart',
arguments: ['run', 'dart_style:format', '--overwrite', '--fix', '.']);
}

@Task('Installs dependencies from npm.')
Expand Down

0 comments on commit 0db7ff2

Please sign in to comment.