renovate
Version:
Automated dependency updates. Flexible so you don't need to be.
19 lines (18 loc) • 653 B
JavaScript
import { AbstractMigration } from "../base/abstract-migration.js";
import { isString } from "@sindresorhus/is";
//#region lib/config/migrations/custom/semantic-prefix-migration.ts
var SemanticPrefixMigration = class extends AbstractMigration {
deprecated = true;
propertyName = "semanticPrefix";
run(value) {
if (isString(value)) {
const [text] = value.split(":");
const [type, scope] = text.split("(");
this.setSafely("semanticCommitType", type);
this.setSafely("semanticCommitScope", scope ? scope.split(")")[0] : null);
}
}
};
//#endregion
export { SemanticPrefixMigration };
//# sourceMappingURL=semantic-prefix-migration.js.map