Skip to content

Commit

Permalink
feat(js): do not invoke explicit dependency analysis when not files t…
Browse files Browse the repository at this point in the history
…o analyze
  • Loading branch information
vsavkin committed May 25, 2023
1 parent a9f1d3a commit b721649
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export function buildExplicitDependencies(
builder: ProjectGraphBuilder
) {
let totalNumOfFilesToProcess = totalNumberOfFilesToProcess(ctx);
if (totalNumOfFilesToProcess === 0) return;
// using workers has an overhead, so we only do it when the number of
// files we need to process is >= 100 and there are more than 2 CPUs
// to be able to use at least 2 workers (1 worker per CPU and
Expand Down

1 comment on commit b721649

@vercel
Copy link

@vercel vercel bot commented on b721649 May 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-git-master-nrwl.vercel.app
nx-five.vercel.app
nx-dev-nrwl.vercel.app
nx.dev

Please sign in to comment.