Skip to content

Commit 8033f76

Browse files
authored
fix(core): check glob for array length (#647)
1 parent fb3a0b6 commit 8033f76

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/utils/src/lib/utility-functions/workspace.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ export async function getNxDotnetProjects(
102102

103103
let isNetProject = false;
104104
for (const pattern of ['*.csproj', '*.fsproj', '*.vbproj'] as const) {
105-
if (await glob(pattern, p?.root)) {
105+
const matches = await glob(pattern, p?.root);
106+
if (matches?.length) {
106107
isNetProject = true;
107108
break;
108109
}

0 commit comments

Comments
 (0)