@nxworker/workspace
Version:
Nx plugin providing generators for managing workspace files, including the move-file generator for safely moving files between projects while updating all imports
11 lines (10 loc) • 598 B
TypeScript
/**
* Updates the project source files cache incrementally when a file is moved.
* This is more efficient than invalidating and re-scanning the entire project.
*
* @param projectRoot - Root path of the project
* @param oldPath - Path of the file being moved
* @param newPath - New path of the file (or null if file is being removed from project)
* @param projectSourceFilesCache - Cache for source files per project
*/
export declare function updateProjectSourceFilesCache(projectRoot: string, oldPath: string, newPath: string | null, projectSourceFilesCache: Map<string, string[]>): void;