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