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

16 lines (15 loc) 587 B
import { ProjectConfiguration } from '@nx/devkit'; /** * Finds the project that contains the given file path. * * Searches through all projects to find one whose sourceRoot or root * is an ancestor of the given file path. * * @param projects - Map of all projects in the workspace * @param filePath - The file path to find the project for * @returns Project configuration and name, or null if not found */ export declare function findProjectForFile(projects: Map<string, ProjectConfiguration>, filePath: string): { project: ProjectConfiguration; name: string; } | null;