Rush StackShopBlogEvents
Skip to main content

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

RushConfiguration.findProjectByShorthandName() method

This is used e.g. by command-line interfaces such as "rush build --to example". If "example" is not a project name, then it also looks for a scoped name like @something/example. If exactly one project matches this heuristic, it is returned. Otherwise, undefined is returned.

Signature:

findProjectByShorthandName(shorthandProjectName: string): RushConfigurationProject | undefined;

Parameters

ParameterTypeDescription
shorthandProjectNamestring

Returns:

RushConfigurationProject | undefined