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 87c3a6987b26c2fba57a6792a8976f77d46c7231..ae6c9c3f220804a14f3c3528b04025113694947c 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 |
@@ -46,7 +46,7 @@ class ListPackageDirsCommand extends PubCommand { |
output["packages"] = packages; |
// Include the self link. |
- packages[entrypoint.root.name] = path.join(entrypoint.root.dir, "lib"); |
+ packages[entrypoint.root.name] = entrypoint.root.path("lib"); |
// Include the file(s) which when modified will affect the results. For pub, |
// that's just the pubspec and lockfile. |