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
Parameter | Type | Description |
---|---|---|
currentFolderPath | string |
Returns:
RushConfigurationProject | undefined