UNPKG

nx

Version:

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

22 lines (21 loc) 1.02 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.yargsSyncCheckCommand = exports.yargsSyncCommand = void 0; const shared_options_1 = require("../yargs-utils/shared-options"); const handle_import_1 = require("../../utils/handle-import"); exports.yargsSyncCommand = { command: 'sync', describe: 'Sync the workspace files by running all the sync generators.', builder: (yargs) => (0, shared_options_1.withVerbose)(yargs), handler: async (args) => { process.exit(await (0, handle_import_1.handleImport)('./sync.js', __dirname).then((m) => m.syncHandler(args))); }, }; exports.yargsSyncCheckCommand = { command: 'sync:check', describe: 'Check that no changes are required after running all sync generators.', builder: (yargs) => (0, shared_options_1.withVerbose)(yargs), handler: async (args) => { process.exit(await (0, handle_import_1.handleImport)('./sync.js', __dirname).then((m) => m.syncHandler({ ...args, check: true }))); }, };