nx
Version:
32 lines (31 loc) • 1.18 kB
TypeScript
import { ChangedFile } from '../../daemon/client/client';
export interface WatchArguments {
projects?: string[];
all?: boolean;
includeDependencies?: boolean;
/**
* @deprecated Renamed to {@link WatchArguments.includeDependencies}; will be
* removed in Nx 24. The original name was misleading: this flag includes
* the watched project's dependencies, not its dependents. The new property
* is functionally identical — only the name changed.
*/
includeDependentProjects?: boolean;
includeGlobalWorkspaceFiles?: boolean;
verbose?: boolean;
command?: string;
initialRun?: boolean;
projectNameEnvName?: string;
fileChangesEnvName?: string;
}
export declare class BatchFunctionRunner {
private callback;
private running;
private pendingProjects;
private pendingFiles;
protected get _verbose(): boolean;
private get hasPending();
constructor(callback: (projects: Set<string>, files: Set<string>) => Promise<unknown>);
enqueue(projectNames: string[], fileChanges: ChangedFile[]): Promise<void>;
private process;
}
export declare function watch(args: WatchArguments): Promise<void>;