mirror of https://github.com/renovatebot/renovate
14 lines
398 B
TypeScript
14 lines
398 B
TypeScript
import { AbstractMigration } from '../base/abstract-migration';
|
|
|
|
export class RequireConfigMigration extends AbstractMigration {
|
|
override readonly propertyName = 'requireConfig';
|
|
|
|
override run(value: unknown): void {
|
|
if (value === false || value === 'false') {
|
|
this.rewrite('optional');
|
|
} else if (value === true || value === 'true') {
|
|
this.rewrite('required');
|
|
}
|
|
}
|
|
}
|