Skip to content

Commit

Permalink
fix(run): lerna run parallel should maximize concurrency with useNx
Browse files Browse the repository at this point in the history
- follows original Lerna [PR #3205](lerna/lerna#3205)
  • Loading branch information
ghiscoding committed Jun 24, 2022
1 parent c045d97 commit 14a113b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/run/src/run-command.ts
Expand Up @@ -275,7 +275,11 @@ export class RunCommand extends Command<RunCommandOption & FilterOptions> {

const options = {
outputStyle,
parallel: this.options.concurrency,
/**
* To match lerna's own behavior (via pMap's default concurrency), we set parallel to a very large number if
* the flag has been set (we can't use Infinity because that would cause issues with the task runner).
*/
parallel: this.options.parallel ? 999 : this.concurrency,
nxBail: this.bail,
nxIgnoreCycles: !this.options.rejectCycles,
skipNxCache: this.options.skipNxCache,
Expand Down

0 comments on commit 14a113b

Please sign in to comment.