mirror of https://github.com/renovatebot/renovate
17 lines
461 B
TypeScript
17 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);
|
|
}
|
|
}
|
|
}
|