UNPKG

nx

Version:

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

27 lines (26 loc) 1.21 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.yargsResetCommand = void 0; exports.yargsResetCommand = { command: 'reset', describe: 'Clears cached Nx artifacts and metadata about the workspace and shuts down the Nx Daemon.', aliases: ['clear-cache'], builder: (yargs) => yargs .option('onlyCache', { description: 'Clears the Nx cache directory. This will remove all local cache entries for tasks, but will not affect the remote cache.', type: 'boolean', }) .option('onlyDaemon', { description: 'Stops the Nx Daemon, it will be restarted fresh when the next Nx command is run.', type: 'boolean', }) .option('onlyCloud', { description: 'Resets the Nx Cloud client. NOTE: Does not clear the remote cache.', type: 'boolean', }) .option('onlyWorkspaceData', { description: 'Clears the workspace data directory. Used by Nx to store cached data about the current workspace (e.g. partial results, incremental data, etc).', type: 'boolean', }), handler: async (argv) => (await Promise.resolve().then(() => require('./reset'))).resetHandler(argv), };