Skip to content

Commit

Permalink
fix(core): check glob for array length (#647)
Browse files Browse the repository at this point in the history
  • Loading branch information
exocom authored Mar 10, 2023
1 parent fb3a0b6 commit 8033f76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/utils/src/lib/utility-functions/workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ export async function getNxDotnetProjects(

let isNetProject = false;
for (const pattern of ['*.csproj', '*.fsproj', '*.vbproj'] as const) {
if (await glob(pattern, p?.root)) {
const matches = await glob(pattern, p?.root);
if (matches?.length) {
isNetProject = true;
break;
}
Expand Down

0 comments on commit 8033f76

Please sign in to comment.