mirror of
https://github.com/PaulHatch/semantic-version.git
synced 2025-12-27 04:58:17 +00:00
Set Jest config file in package script Include module path Include tests in project folders Remove index module exports Hardcode configuration parameters Move parameter binding into main run function Use alias imports Run test sequentially Remove cleanup (async conflict) Revert Jest option Increase test timeout to 15 seconds
16 lines
620 B
JavaScript
16 lines
620 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.DefaultVersionFormatter = void 0;
|
|
class DefaultVersionFormatter {
|
|
constructor(config) {
|
|
this.formatString = config.versionFormat;
|
|
}
|
|
Format(versionInfo) {
|
|
return this.formatString
|
|
.replace('${major}', versionInfo.major.toString())
|
|
.replace('${minor}', versionInfo.minor.toString())
|
|
.replace('${patch}', versionInfo.patch.toString())
|
|
.replace('${increment}', versionInfo.increment.toString());
|
|
}
|
|
}
|
|
exports.DefaultVersionFormatter = DefaultVersionFormatter;
|