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

12 lines (11 loc) 599 B
import { Tree } from '@nx/devkit'; import type { MoveContext } from '../types/move-context'; /** * Updates imports in the target project when necessary after moving the file. * * @param tree - The virtual file system tree. * @param ctx - Resolved move context. * @param sourceIdentifier - The import specifier to replace. * @param getProjectSourceFilesFn - Function to get project source files. */ export declare function updateTargetProjectImportsIfNeeded(tree: Tree, ctx: MoveContext, sourceIdentifier: string, getProjectSourceFilesFn: (tree: Tree, projectRoot: string) => string[]): void;