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

Parameter Type Description
variant string | undefined 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.