Skip to content

Commit

Permalink
Merge pull request #8278 from jmcdo29/fix/flush-logs-on-package-resol…
Browse files Browse the repository at this point in the history
…ve-error

fix: flush logs on package resolution failure
  • Loading branch information
kamilmysliwiec authored Oct 11, 2021
2 parents df00a0a + 5e2a8be commit 365d342
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 365d342

Please sign in to comment.