UNPKG

nx

Version:

The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.

21 lines (20 loc) 803 B
"use strict"; 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); } }, };