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
import type { FileData } from '../config/project-graph'; import type { NxArgs } from '../utils/command-line-utils'; export interface Change { type: string; } export interface FileChange<T extends Change = Change> extends FileData { getChanges: () => T[]; } export declare class WholeFileChange implements Change { type: string; } export declare class DeletedFileChange implements Change { type: string; } export declare function isWholeFileChange(change: Change): change is WholeFileChange; export declare function isDeletedFileChange(change: Change): change is DeletedFileChange; export declare function calculateFileChanges(files: string[], allWorkspaceFiles: FileData[], nxArgs?: NxArgs, readFileAtRevision?: (f: string, r: void | string) => string, ignore?: ReturnType<typeof ignore>): FileChange[]; export declare const TEN_MEGABYTES: number; export declare function defaultFileRead(filePath: string): string | null; export declare function readPackageJson(root?: string): any; export { FileData };