Skip to content

Commit fafa3b4

Browse files
AgentEnderFrozenPandaz
authored andcommitted
fix(core): suppress access errors during project file scan (#13031)
(cherry picked from commit f583689)
1 parent 86c5819 commit fafa3b4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/nx/src/config/workspaces.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,7 @@ export function globForProjectFiles(
694694
'node_modules',
695695
'**/node_modules',
696696
'dist',
697+
'.git',
697698
...globsToExclude,
698699
];
699700

@@ -714,6 +715,7 @@ export function globForProjectFiles(
714715
absolute: false,
715716
cwd: root,
716717
dot: true,
718+
suppressErrors: true,
717719
});
718720

719721
projectGlobCache = deduplicateProjectFiles(globResults, ig);

0 commit comments

Comments
 (0)