1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | function run(fn) {
|
4 | return fn().catch(handleError);
|
5 | }
|
6 | exports.run = run;
|
7 | function handleError(err) {
|
8 | console.error(err.stack);
|
9 | process.exitCode = 1;
|
10 | }
|
11 | exports.handleError = handleError;
|