We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b045e0 commit d37379fCopy full SHA for d37379f
packages/nx/src/project-graph/build-project-graph.ts
@@ -49,7 +49,6 @@ export async function buildProjectGraph() {
49
50
const cacheEnabled = process.env.NX_CACHE_PROJECT_GRAPH !== 'false';
51
let cache = cacheEnabled ? readCache() : null;
52
-
53
return (
54
await buildProjectGraphUsingProjectFileMap(
55
workspaceJson,
@@ -292,7 +291,10 @@ function buildExplicitDependenciesUsingWorkers(
292
291
totalNumOfFilesToProcess: number,
293
builder: ProjectGraphBuilder
294
) {
295
- const numberOfWorkers = getNumberOfWorkers();
+ const numberOfWorkers = Math.min(
+ totalNumOfFilesToProcess,
296
+ getNumberOfWorkers()
297
+ );
298
const bins = splitFilesIntoBins(
299
ctx,
300
totalNumOfFilesToProcess,
0 commit comments