Home > @microsoft/rush-lib > IndividualVersionPolicy

IndividualVersionPolicy class

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.

This policy indicates all related projects get version bump driven by their own changes.


export declare class IndividualVersionPolicy extends VersionPolicy 

Extends: VersionPolicy


The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the IndividualVersionPolicy class.


Property Modifiers Type Description
lockedMajor   number | undefined (BETA) The major version that has been locked


Method Modifiers Description
bump(bumpType, identifier)   (BETA) Bumps version. Individual version policy lets change files drive version bump. This method currently does not do anything.
ensure(project, force)   (BETA) Returns an updated package json that satisfies the version policy.
validate(versionString, packageName)   (BETA) Validates the specified version and throws if the version does not satisfy the policy.