UNPKG

component-version-update

Version:

Обновляет версию пакета в файлах package.json, CHANGELOG.md с формированием коммита с изменениями

29 lines 960 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const chalk_1 = __importDefault(require("chalk")); class Logger { constructor(verbose = false) { this.verbose = verbose; } log(msg) { console.log(chalk_1.default.grey(msg)); } info(msg, after = '') { if (this.verbose) { console.log(chalk_1.default.bold.blue(`[Info]`), msg, chalk_1.default.grey(after)); } } warn(msg, after = '') { if (this.verbose) { console.log(chalk_1.default.bold.yellow(`[Warning] ${msg}`), chalk_1.default.yellow(after)); } } error(msg, after = '') { console.log(chalk_1.default.bold.red(`[Error]: ${msg}`), chalk_1.default.red(after)); } } exports.default = Logger; //# sourceMappingURL=Logger.js.map