0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-01-11 13:48:55 +00:00
renovatebot_renovate/lib/config/migrations/custom/post-update-options-migration.ts

16 lines
461 B
TypeScript

import is from '@sindresorhus/is';
import { AbstractMigration } from '../base/abstract-migration';
export class PostUpdateOptionsMigration extends AbstractMigration {
override readonly propertyName = 'postUpdateOptions';
override run(value: unknown): void {
if (Array.isArray(value)) {
const newValue = value
.filter(is.nonEmptyString)
.filter((option) => option !== 'gomodNoMassage');
this.rewrite(newValue);
}
}
}