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) 577 B
import { ProjectConfiguration } from '@nx/devkit'; /** * Derives the target directory from a source file path. * * Extracts the directory structure relative to the project's base directory (lib/ or app/). * Returns undefined if the file is not in the expected structure. * * @param sourceFilePath - Source file path * @param sourceProject - Source project configuration * @returns Directory path or undefined if not derivable */ export declare function deriveProjectDirectoryFromSource(sourceFilePath: string, sourceProject: ProjectConfiguration): string | undefined;