Skip to content

Commit c35dd7d

Browse files
committed
chore(tools): use default turbo concurrency
1 parent a47cfec commit c35dd7d

3 files changed

Lines changed: 9 additions & 11 deletions

File tree

.changeset/whole-monkeys-lead.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@repo/tools': patch
3+
---
4+
5+
chore: use default turbo concurrency

packages/tools/src/cmd/check.cmd.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@ export const checkCmd = new Command('check')
3838
const runFromRoot = cwd === repoRoot
3939
const cwdName = path.basename(cwd)
4040

41-
const turboFlags = [
42-
// use all available CPU cores
43-
'--concurrency=100%',
44-
] satisfies string[]
41+
const turboFlags: string[] = []
4542

4643
if (useContinue) {
4744
turboFlags.push('--continue')
@@ -51,10 +48,10 @@ export const checkCmd = new Command('check')
5148
deps: ['syncpack', 'lint'],
5249
// oxlint can be run from anywhere and it'll automatically only lint the current dir and children
5350
lint: ['run-oxlint'],
54-
types: ['turbo', turboFlags, 'check:types'].flat(),
51+
types: ['turbo', ...turboFlags, 'check:types'],
5552
format: ['prettier', '.', '--cache', '--check', '--log-level=warn'],
5653
formatShell: ['runx', 'shfmt', 'check', '--skip-if-unavailable'],
57-
workersTypes: ['turbo', turboFlags, 'check:workers-types'].flat(),
54+
workersTypes: ['turbo', ...turboFlags, 'check:workers-types'],
5855
} as const satisfies { [key: string]: string[] }
5956

6057
type TableRow = [string, string, string, string]

packages/tools/src/cmd/fix.cmd.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,11 @@ export const fixCmd = new Command('fix')
3333
const cwd = process.cwd()
3434
const runFromRoot = cwd === repoRoot
3535
const cwdName = path.basename(cwd)
36-
const turboFlags = [
37-
// use all available CPU cores
38-
'--concurrency=100%',
39-
] satisfies string[]
4036

4137
const fixes = {
4238
deps: ['run-fix-deps'],
4339
lint: ['run-oxlint', '--fix'],
44-
workersTypes: ['turbo', turboFlags, 'fix:workers-types'].flat(),
40+
workersTypes: ['turbo', 'fix:workers-types'],
4541
format: ['prettier', '.', '--cache', '--write', '--log-level=warn'],
4642
formatShell: ['runx', 'shfmt', 'fix', '--skip-if-unavailable'],
4743
} as const satisfies { [key: string]: string[] }

0 commit comments

Comments
 (0)