From 5e2a8be2a53bcb844eabce004b7dca62e567a54f Mon Sep 17 00:00:00 2001 From: Jay McDoniel Date: Sat, 9 Oct 2021 16:54:06 -0700 Subject: [PATCH] fix: flush logs on package resolution failure --- packages/common/utils/load-package.util.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/common/utils/load-package.util.ts b/packages/common/utils/load-package.util.ts index c88f2ded05e..9cf6b23e95e 100644 --- a/packages/common/utils/load-package.util.ts +++ b/packages/common/utils/load-package.util.ts @@ -14,6 +14,7 @@ export function loadPackage( return loaderFn ? loaderFn() : require(packageName); } catch (e) { logger.error(MISSING_REQUIRED_DEPENDENCY(packageName, context)); + Logger.flush(); process.exit(1); } }