release-checker
Version:
Check your release before publishing
19 lines (18 loc) • 530 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var child_process_1 = require("child_process");
function exec(command) {
try {
var result = child_process_1.execSync(command, { encoding: 'utf8' });
return result.toString();
}
catch (error) {
return error.message;
}
}
exports.exec = exec;
function execOrThrow(command) {
var result = child_process_1.execSync(command, { encoding: 'utf8' });
return result.toString();
}
exports.execOrThrow = execOrThrow;