nx
Version:
21 lines (20 loc) • 803 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.yargsExecCommand = void 0;
const shared_options_1 = require("../yargs-utils/shared-options");
const handle_import_1 = require("../../utils/handle-import");
exports.yargsExecCommand = {
command: 'exec',
describe: 'Executes any command as if it was a target on the project.',
builder: (yargs) => (0, shared_options_1.withTuiOptions)((0, shared_options_1.withRunManyOptions)(yargs)),
handler: async (args) => {
try {
await (await (0, handle_import_1.handleImport)('./exec.js', __dirname)).nxExecCommand((0, shared_options_1.withOverrides)(args));
process.exit(0);
}
catch (e) {
console.error(e);
process.exit(1);
}
},
};