Home > @microsoft/rush-lib > RushConfiguration > findProjectForPosixRelativePath

RushConfiguration.findProjectForPosixRelativePath() method

Finds the project that owns the specified POSIX relative path (e.g. apps/rush-lib). The path is case-sensitive, so will only return a project if its projectRelativePath matches the casing.

Signature:

findProjectForPosixRelativePath(posixRelativePath: string): RushConfigurationProject | undefined;

Parameters

Parameter Type Description
posixRelativePath string  

Returns:

RushConfigurationProject | undefined

The found project, or undefined if no match was found