@webresto/cli
Version:
Webresto command line interface
16 lines (15 loc) • 755 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.upgrade = void 0;
const async_shelljs_1 = require("async-shelljs");
const chalk_1 = __importDefault(require("chalk"));
const upgrade = async () => {
async_shelljs_1.config.silent = false;
console.log((0, chalk_1.default) `{blueBright.bold It just hard reinstall webresto/cli}`);
console.log((0, chalk_1.default) `{rgb(10, 0, 0).bgYellow.bold TODO:} need check updates in NPMJS \n---`);
await (0, async_shelljs_1.exec)(`npm uninstall -g @webresto/cli && npm install -g @webresto/cli`);
};
exports.upgrade = upgrade;