Skip to content

Commit ff00647

Browse files
authored
chore: try fix ci (#12287)
1 parent d51d629 commit ff00647

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/scripts/src/locale-kit-next/run-lingui.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,22 @@ async function getLinguiEnabledPackages() {
2323
)
2424
return folders
2525
}
26+
const parallel = process.env.CI ? '' : '--parallel'
2627
export async function runLinguiExtract() {
2728
const folders = await getLinguiEnabledPackages()
2829
return awaitChildProcess(
29-
shell`pnpm -r --no-reporter-hide-prefix --aggregate-output --reporter=append-only --parallel ${folders.map((x) => '--filter ' + x).join(' ')} exec lingui extract`,
30+
shell`pnpm -r --no-reporter-hide-prefix --aggregate-output --reporter=append-only ${parallel} ${folders.map((x) => '--filter ' + x).join(' ')} exec lingui extract`,
3031
)
3132
}
3233
task(runLinguiExtract, 'lingui-extract', 'Run lingui extract on all workspace packages')
3334

3435
export async function runLinguiCompile() {
3536
const folders = await getLinguiEnabledPackages()
3637
await awaitChildProcess(
37-
shell`pnpm -r --no-reporter-hide-prefix --aggregate-output --reporter=append-only --parallel ${folders.map((x) => '--filter ' + x).join(' ')} exec lingui compile`,
38+
shell`pnpm -r --no-reporter-hide-prefix --aggregate-output --reporter=append-only ${parallel} ${folders.map((x) => '--filter ' + x).join(' ')} exec lingui compile`,
3839
)
3940
return awaitChildProcess(
40-
shell`pnpm -r --no-reporter-hide-prefix --aggregate-output --reporter=append-only --parallel ${folders.map((x) => '--filter ' + x).join(' ')} exec prettier --write './**/*.json'`,
41+
shell`pnpm -r --no-reporter-hide-prefix --aggregate-output --reporter=append-only ${parallel} ${folders.map((x) => '--filter ' + x).join(' ')} exec prettier --write './**/*.json'`,
4142
)
4243
}
4344
task(runLinguiCompile, 'lingui-compile', 'Run lingui compile on all workspace packages')

0 commit comments

Comments
 (0)