UNPKG

nx

Version:

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

57 lines (56 loc) 1.87 kB
import type { Arguments } from 'yargs'; import { NxJsonConfiguration } from '../config/nx-json'; import { ProjectGraph } from '../config/project-graph'; export interface RawNxArgs extends NxArgs { prod?: boolean; } export interface NxArgs { targets?: string[]; configuration?: string; /** * @deprecated Custom task runners will be replaced by a new API starting with Nx 21. More info: https://nx.dev/deprecated/custom-tasks-runner */ runner?: string; parallel?: number; untracked?: boolean; uncommitted?: boolean; all?: boolean; base?: string; head?: string; exclude?: string[]; files?: string[]; verbose?: boolean; help?: boolean; version?: boolean; plain?: boolean; projects?: string[]; select?: string; graph?: string | boolean; skipNxCache?: boolean; skipRemoteCache?: boolean; outputStyle?: string; nxBail?: boolean; nxIgnoreCycles?: boolean; type?: string; batch?: boolean; excludeTaskDependencies?: boolean; skipSync?: boolean; sortRootTsconfigPaths?: boolean; } export declare function createOverrides(__overrides_unparsed__?: string[]): Record<string, any>; export declare function getBaseRef(nxJson: NxJsonConfiguration): string; export declare function splitArgsIntoNxArgsAndOverrides(args: { [k: string]: any; }, mode: 'run-one' | 'run-many' | 'affected' | 'print-affected', options: { printWarnings: boolean; }, nxJson: NxJsonConfiguration): { nxArgs: NxArgs; overrides: Arguments & { __overrides_unparsed__: string[]; }; }; export declare function parseFiles(options: NxArgs): { files: string[]; }; export declare function getProjectRoots(projectNames: string[], { nodes }: ProjectGraph): string[]; export declare function readGraphFileFromGraphArg({ graph }: Pick<NxArgs, 'graph'>): string;