UNPKG

@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

16 lines (15 loc) 714 B
import type { MoveContext } from '../types/move-context'; import type { MoveFileGeneratorSchema } from '../schema'; /** * Determines whether the moved file should be exported after the move completes. * * Export logic: * - Always skip if skipExport option is true * - For same-project moves: maintain existing export status * - For cross-project moves: export if previously exported OR if target has imports OR if source has imports * * @param ctx - Resolved move context. * @param options - Generator options controlling export behavior. * @returns True if an export statement should be ensured. */ export declare function shouldExportFile(ctx: MoveContext, options: MoveFileGeneratorSchema): boolean;