File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
packages/scripts/src/locale-kit-next Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -23,21 +23,22 @@ async function getLinguiEnabledPackages() {
2323 )
2424 return folders
2525}
26+ const parallel = process . env . CI ? '' : '--parallel'
2627export 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}
3233task ( runLinguiExtract , 'lingui-extract' , 'Run lingui extract on all workspace packages' )
3334
3435export 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}
4344task ( runLinguiCompile , 'lingui-compile' , 'Run lingui compile on all workspace packages' )
You can’t perform that action at this time.
0 commit comments