diff --git a/packages/cli/src/commands/repo/fix.ts b/packages/cli/src/commands/repo/fix.ts index 6572ed219e..c96484e2ed 100644 --- a/packages/cli/src/commands/repo/fix.ts +++ b/packages/cli/src/commands/repo/fix.ts @@ -432,12 +432,18 @@ export async function command(opts: OptionValues): Promise { const packages = await readFixablePackages(); const fixRepositoryField = createRepositoryFieldFixer(); - for (const pkg of packages) { - fixPackageExports(pkg); - fixSideEffects(pkg); - fixRepositoryField(pkg); - fixPluginId(pkg); - fixPluginPackages(pkg, packages); + const fixers = [ + fixPackageExports, + fixSideEffects, + fixRepositoryField, + fixPluginId, + fixPluginPackages, + ]; + + for (const fixer of fixers) { + for (const pkg of packages) { + fixer(pkg, packages); + } } if (opts.check) {