@ivoryio/ivory-cli
Version:
18 lines (17 loc) • 674 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.amplifyPush = void 0;
var shelljs_1 = __importDefault(require("shelljs"));
exports.amplifyPush = function () {
var command = "amplify push --yes";
shelljs_1.default.echo(command);
var result = shelljs_1.default.exec(command);
if (result.code !== 0) {
shelljs_1.default.echo("Error: failed to run amplify push with command");
shelljs_1.default.echo(result.stderr);
shelljs_1.default.exit(result.code);
}
};