Add trailing newline to package_config file

Avoids spurious diffs in git when generating with the tool compared to
editing the file in an editor which may correct the missing newline.

Change-Id: If73928fef0682c32d728bae666ccaea4c2749890
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/185497
Auto-Submit: Nate Bosch <nbosch@google.com>
Commit-Queue: Nate Bosch <nbosch@google.com>
Commit-Queue: Leaf Petersen <leafp@google.com>
Reviewed-by: Leaf Petersen <leafp@google.com>
This commit is contained in:
Nate Bosch 2021-02-19 00:12:49 +00:00 committed by commit-bot@chromium.org
parent 4dabdbd028
commit 0485883d66

View file

@ -128,7 +128,7 @@ void main(List<String> args) {
// TODO(rnystrom): Consider using package_config_v2 to generate this instead.
var json = JsonEncoder.withIndent(' ').convert(config);
configFile.writeAsStringSync(json);
configFile.writeAsStringSync('$json\n');
print('Generated .dart_tool/package_config.dart containing '
'${packages.length} packages.');
}