Rush StackShopBlogEvents
Skip to main content

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

RushConfiguration.getImplicitlyPreferredVersions() method

Returns a map of all direct dependencies that only have a single semantic version specifier.

Signature:

getImplicitlyPreferredVersions(variant?: string | undefined): Map<string, string>;

Parameters

ParameterTypeDescription
variantstring | undefined(Optional) The name of the current variant in use by the active command.

Returns:

Map<string, string>

A map of dependency name --> version specifier for implicitly preferred versions.