From 56cb4b5f09d53eb8a9b6ad82be7cd28c06479d11 Mon Sep 17 00:00:00 2001 From: skywalker Date: Sat, 10 Sep 2022 23:31:21 +0800 Subject: [PATCH] fix: flush logs on package resolution failure --- lib/utils/checkPackage.util.ts | 1 + 1 file changed, 1 insertion(+) 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);