Skip to content

Commit

Permalink
fix(core): suppress access errors during project file scan (#13031)
Browse files Browse the repository at this point in the history
(cherry picked from commit f583689)
  • Loading branch information
AgentEnder authored and FrozenPandaz committed Nov 7, 2022
1 parent 86c5819 commit fafa3b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/nx/src/config/workspaces.ts
Expand Up @@ -694,6 +694,7 @@ export function globForProjectFiles(
'node_modules',
'**/node_modules',
'dist',
'.git',
...globsToExclude,
];

Expand All @@ -714,6 +715,7 @@ export function globForProjectFiles(
absolute: false,
cwd: root,
dot: true,
suppressErrors: true,
});

projectGlobCache = deduplicateProjectFiles(globResults, ig);
Expand Down

0 comments on commit fafa3b4

Please sign in to comment.