| hide_title | true |
|---|---|
| custom_edit_url | |
| pagination_prev | |
| pagination_next |
Home > @microsoft/rush-lib > VersionPolicy
This is the base class for version policy which controls how versions get bumped.
Signature:
export declare abstract class 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 VersionPolicy class.
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
Version policy definition name | ||
|
|
boolean |
Determines if a version policy wants to opt out of changelog files. | |
|
|
boolean |
Determines if a version policy wants to opt in to including email. | |
|
|
boolean |
Whether it is a lockstepped version policy | |
|
|
string |
Version policy name |
|
Method |
Modifiers |
Description |
|---|---|---|
|
|
Bumps version based on the policy | |
|
|
Returns an updated package json that satisfies the policy. | |
|
setDependenciesBeforeCommitAsync(packageName, configuration) |
Tells the version policy to modify any dependencies in the target package to values used for checked-in source. | |
|
setDependenciesBeforePublishAsync(packageName, configuration) |
Tells the version policy to modify any dependencies in the target package to values used for publishing. | |
|
|
Validates the specified version and throws if the version does not satisfy the policy. |