diff --git a/lib/utils/checkPackage.util.ts b/lib/utils/checkPackage.util.ts index 5fa9896f0..f25c94079 100644 --- a/lib/utils/checkPackage.util.ts +++ b/lib/utils/checkPackage.util.ts @@ -63,6 +63,7 @@ export function checkPackages(packageNames: string[], reason: string): any[] { if (missingDependenciesNames.length) { logger.error(MISSING_REQUIRED_DEPENDENCY(missingDependenciesNames, reason)); + Logger.flush(); process.exit(1); } return packages.map((pkg) => pkg.pkg);