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(subspace?: Subspace, variant?: string): Map<string, string>;

Parameters

Parameter

Type

Description

subspace

Subspace

(Optional) The subspace to use

variant

string

(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.