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) 736 B
import { Tree, ProjectConfiguration } from '@nx/devkit'; /** * Updates import paths within a single project to use a package alias * * @param tree - The virtual file system tree. * @param project - The project configuration. * @param sourceFilePath - The source file path. * @param targetPackageAlias - The target package alias. * @param excludeFilePaths - File paths to exclude from updates. * @param getProjectSourceFilesFn - Function to get project source files. */ export declare function updateImportPathsToPackageAlias(tree: Tree, project: ProjectConfiguration, sourceFilePath: string, targetPackageAlias: string, excludeFilePaths: string[], getProjectSourceFilesFn: (tree: Tree, projectRoot: string) => string[]): void;