Skip to content

Commit

Permalink
Fix parallelism
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperpeulen committed Mar 18, 2024
1 parent b83c6a6 commit 2f9d927
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/tasks/check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Task } from '../task';
import { exec } from '../utils/exec';
import { maxConcurrentTasks } from '../utils/maxConcurrentTasks';

const parallel = process.env.CI ? `--parallel=${maxConcurrentTasks}` : '';
const parallel = `--parallel=${process.env.CI ? 8 : maxConcurrentTasks}`;

const linkCommand = `nx affected -t check ${parallel}`;
const nolinkCommand = `nx affected -t check -c production ${parallel}`;
Expand Down
2 changes: 1 addition & 1 deletion scripts/tasks/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { maxConcurrentTasks } from '../utils/maxConcurrentTasks';
import { exec } from '../utils/exec';
import type { Task } from '../task';

const parallel = process.env.CI ? `--parallel=${maxConcurrentTasks}` : '';
const parallel = `--parallel=${process.env.CI ? 8 : maxConcurrentTasks}`;

const linkedContents = `export * from '../src/index';`;
const linkCommand = `nx run-many -t build ${parallel}`;
Expand Down

0 comments on commit 2f9d927

Please sign in to comment.