Home > @microsoft/rush-lib > VersionPolicyConfiguration > getVersionPolicy

VersionPolicyConfiguration.getVersionPolicy() method

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Gets the version policy by its name. Throws error if the version policy is not found.

Signature:

getVersionPolicy(policyName: string): VersionPolicy;

Parameters

Parameter Type Description
policyName string Name of the version policy

Returns:

VersionPolicy