@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
13 lines (12 loc) • 543 B
TypeScript
import { Tree } from '@nx/devkit';
import { MoveFileGeneratorSchema } from './schema';
/**
* Generator to move a file from one Nx project to another
* and update import paths throughout the workspace.
*
* @param tree - The virtual file system tree
* @param options - Generator options including source file path and target project
* @returns A promise that resolves when the generator completes
*/
export declare function moveFileGenerator(tree: Tree, options: MoveFileGeneratorSchema): Promise<void>;
export default moveFileGenerator;