Skip to content

Latest commit

 

History

History
76 lines (39 loc) · 1.13 KB

File metadata and controls

76 lines (39 loc) · 1.13 KB
hide_title true
custom_edit_url
pagination_prev
pagination_next

Home > @microsoft/rush-lib > LockStepVersionPolicy > ensure

LockStepVersionPolicy.ensure() method

Returns an updated package json that satisfies the version policy.

Signature:

ensure(project: IPackageJson, force?: boolean): IPackageJson | undefined;

Parameters

Parameter

Type

Description

project

IPackageJson

input package json

force

boolean

(Optional) force update even when the project version is higher than the policy version.

Returns:

IPackageJson | undefined