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
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
Property | Modifiers | Type | Description |
---|---|---|---|
lockedMajor | readonly | number | undefined | The major version that has been locked |
Methods
Method | Modifiers | Description |
---|---|---|
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. |