Rush StackShopBlogEvents
Skip to main content

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

RushConfiguration.tryGetProjectForPath() method

Returns the project for which the specified path is underneath that project's folder. If the path is not under any project's folder, returns undefined.

Signature:

tryGetProjectForPath(currentFolderPath: string): RushConfigurationProject | undefined;

Parameters

ParameterTypeDescription
currentFolderPathstring

Returns:

RushConfigurationProject | undefined