Rush StackShopBlogEvents
Skip to main content

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

RushConfiguration.getCurrentlyInstalledVariantAsync() method

Gets the currently-installed variant, if an installation has occurred. For Rush operations which do not take a --variant parameter, this method determines which variant, if any, was last specified when performing "rush install" or "rush update".

Signature:

getCurrentlyInstalledVariantAsync(): Promise<string | undefined>;

Returns:

Promise<string | undefined>