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
skywalker512 authored Sep 10, 2022
1 parent 6a1eee9 commit 56cb4b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/utils/checkPackage.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 56cb4b5

Please sign in to comment.