@modyo/cli
Version:
Modyo CLI Command line to expose local development tools
23 lines (22 loc) • 869 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const path = tslib_1.__importStar(require("node:path"));
const core_1 = require("@oclif/core");
const debug_1 = tslib_1.__importDefault(require("debug"));
const packageManagers = tslib_1.__importStar(require("../helpers/package-managers"));
const debug = (0, debug_1.default)('push/run-build-command.ts');
const debugError = (0, debug_1.default)('error::push/run-build-command.ts');
async function runBuildCommand(buildCommand) {
const actualPath = path.resolve('.');
core_1.ux.action.start('Building Widget');
try {
debug('run build command');
await packageManagers.runCommand(actualPath, buildCommand);
}
catch (error) {
debugError(error);
}
core_1.ux.action.stop();
}
exports.default = runBuildCommand;