Skip to content

Commit

Permalink
fix: flush logs on package resolution failure
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcdo29 committed Oct 9, 2021
1 parent 85e51e2 commit 5e2a8be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/common/utils/load-package.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 5e2a8be

Please sign in to comment.