renovate
Version:
Automated dependency updates. Flexible so you don't need to be.
17 lines (16 loc) • 632 B
JavaScript
import { AbstractMigration } from "../base/abstract-migration.js";
import { isNonEmptyString } from "@sindresorhus/is";
//#region lib/config/migrations/custom/post-update-options-migration.ts
var PostUpdateOptionsMigration = class extends AbstractMigration {
propertyName = "postUpdateOptions";
run(value) {
// v8 ignore else -- TODO: add test #40625
if (Array.isArray(value)) {
const newValue = value.filter(isNonEmptyString).filter((option) => option !== "gomodNoMassage");
this.rewrite(newValue);
}
}
};
//#endregion
export { PostUpdateOptionsMigration };
//# sourceMappingURL=post-update-options-migration.js.map