RoadmapShopEvents
Skip to main content

Home > @microsoft/rush-lib > IndividualVersionPolicy

IndividualVersionPolicy class

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

Signature:
export declare class IndividualVersionPolicy extends VersionPolicy
Extends: [VersionPolicy](/pages/rush-lib.versionpolicy)

Remarks

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.

Properties

PropertyModifiersTypeDescription
lockedMajornumber | undefinedThe major version that has been locked

Methods

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