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) 653 B
import { Tree, ProjectConfiguration } from '@nx/devkit'; /** * Checks if a project has relative imports to a given file * * @param tree - The virtual file system tree. * @param project - The project configuration. * @param sourceFilePath - The absolute path to the source file. * @param getProjectSourceFilesFn - Function to get project source files. * @returns True if any file in the project imports the given file via relative path. */ export declare function checkForRelativeImportsInProject(tree: Tree, project: ProjectConfiguration, sourceFilePath: string, getProjectSourceFilesFn: (tree: Tree, projectRoot: string) => string[]): boolean;