| Index: sdk/lib/_internal/pub/lib/src/command/list_package_dirs.dart
|
| diff --git a/sdk/lib/_internal/pub/lib/src/command/list_package_dirs.dart b/sdk/lib/_internal/pub/lib/src/command/list_package_dirs.dart
|
| index fc05630b2db2b04a808f0bc7e78ebd335022c92a..f16ad65fd3be5877e4af37ee3ebed84db93e6006 100644
|
| --- a/sdk/lib/_internal/pub/lib/src/command/list_package_dirs.dart
|
| +++ b/sdk/lib/_internal/pub/lib/src/command/list_package_dirs.dart
|
| @@ -5,8 +5,8 @@
|
| library pub.command.list_package_dirs;
|
|
|
| import 'dart:async';
|
| +import 'dart:convert';
|
| import 'dart:io';
|
| -import 'dart:json' as json;
|
|
|
| import 'package:path/path.dart' as path;
|
|
|
| @@ -28,7 +28,7 @@ class ListPackageDirsCommand extends PubCommand {
|
|
|
| Future onRun() {
|
| if (!entrypoint.lockFileExists) {
|
| - log.error(json.stringify(
|
| + log.error(JSON.encode(
|
| 'Package "myapp" has no lockfile. Please run "pub install" first.'));
|
| exit(exit_codes.NO_INPUT);
|
| }
|
| @@ -55,7 +55,7 @@ class ListPackageDirsCommand extends PubCommand {
|
| output["input_files"] = [entrypoint.lockFilePath];
|
|
|
| return Future.wait(futures).then((_) {
|
| - log.message(json.stringify(output));
|
| + log.message(JSON.encode(output));
|
| });
|
| }
|
| }
|
|
|