@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) • 505 B
TypeScript
import type { Tree } from '@nx/devkit';
import type { MoveContext } from '../types/move-context';
/**
* Applies the move behavior when the file remains in the same project.
*
* @param tree - The virtual file system tree.
* @param ctx - Resolved move context.
* @param getProjectSourceFiles - Function to get project source files with caching.
*/
export declare function handleSameProjectMove(tree: Tree, ctx: MoveContext, getProjectSourceFiles: (tree: Tree, projectRoot: string) => string[]): void;