diff --git a/packages/core/src/lib/implementation/execute-plugin.ts b/packages/core/src/lib/implementation/execute-plugin.ts index e4488e6bb..2d558bb71 100644 --- a/packages/core/src/lib/implementation/execute-plugin.ts +++ b/packages/core/src/lib/implementation/execute-plugin.ts @@ -156,19 +156,15 @@ export async function executePlugins( const progressBar = progress ? getProgressBar('Run plugins') : null; - const pluginsResult = await plugins.reduce( - async (acc, pluginCfg) => [ - ...(await acc), - wrapProgress(pluginCfg, plugins.length, progressBar), - ], - Promise.resolve([] as Promise[]), + const pluginsResult = plugins.map(pluginCfg => + wrapProgress(pluginCfg, plugins.length, progressBar), ); - progressBar?.endProgress('Done running plugins'); - const errorsTransform = ({ reason }: PromiseRejectedResult) => String(reason); const results = await Promise.allSettled(pluginsResult); + progressBar?.endProgress('Done running plugins'); + logMultipleResults(results, 'Plugins', undefined, errorsTransform); const { fulfilled, rejected } = groupByStatus(results);