@@ -118,8 +118,9 @@ async function runProjectsInBulk(
118118
119119 await collectMany ( runManyCommand , env ) ;
120120
121- const currProjectReports = await Promise . all (
122- projects . map ( async ( project ) : Promise < ProjectReport > => {
121+ const currProjectReports = await asyncSequential (
122+ projects ,
123+ async ( project ) : Promise < ProjectReport > => {
123124 const ctx = createCommandContext ( settings , project ) ;
124125 const config = await printPersistConfig ( ctx ) ;
125126 const reports = await saveOutputFiles ( {
@@ -129,7 +130,7 @@ async function runProjectsInBulk(
129130 settings,
130131 } ) ;
131132 return { project, reports, config, ctx } ;
132- } ) ,
133+ } ,
133134 ) ;
134135 logger . debug (
135136 `Loaded ${ currProjectReports . length } persist configs by running print-config command for each project` ,
@@ -222,12 +223,13 @@ async function collectPreviousReports(
222223 }
223224
224225 return runInBaseBranch ( base , env , async ( ) => {
225- const uncachedProjectConfigs = await Promise . all (
226- uncachedProjectReports . map ( async args => ( {
226+ const uncachedProjectConfigs = await asyncSequential (
227+ uncachedProjectReports ,
228+ async args => ( {
227229 name : args . project . name ,
228230 ctx : args . ctx ,
229231 config : await checkPrintConfig ( args ) ,
230- } ) ) ,
232+ } ) ,
231233 ) ;
232234
233235 const validProjectConfigs =
0 commit comments