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

13 lines (12 loc) 634 B
import type { Tree } from '@nx/devkit'; import type { MoveContext } from '../types/move-context'; import type { MoveFileGeneratorSchema } from '../schema'; /** * Ensures the moved file is exported from the target project when required. * * @param tree - The virtual file system tree. * @param ctx - Resolved move context. * @param options - Generator options controlling export behavior. * @param cachedTreeExists - Cached tree.exists() function. */ export declare function ensureExportIfNeeded(tree: Tree, ctx: MoveContext, options: MoveFileGeneratorSchema, cachedTreeExists: (tree: Tree, filePath: string) => boolean): void;