From f6eec0a295c186715a68ee5b6ee96f32de2184e9 Mon Sep 17 00:00:00 2001 From: Gabriel Terwesten Date: Tue, 21 Jun 2022 21:30:32 +0200 Subject: [PATCH] fix: follow up #330 (#331) --- packages/melos/lib/src/package.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/melos/lib/src/package.dart b/packages/melos/lib/src/package.dart index ce1d56d3..bb22eae5 100644 --- a/packages/melos/lib/src/package.dart +++ b/packages/melos/lib/src/package.dart @@ -414,7 +414,7 @@ class PackageMap { final resolvedPath = await entity.resolveSymbolicLinks(); pubspecsByResolvedPath[resolvedPath] = entity; } else if (entity is Directory && - isPackageDirectory(entity) && + isPackageDirectory(entity.path) && isIncluded) { final pubspecPath = p.join(path, 'pubspec.yaml'); pubspecsByResolvedPath[pubspecPath] = File(pubspecPath);