0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 13:38:32 +00:00
renovatebot_renovate/lib/config/migrations/base/remove-property-migration.ts
2023-11-07 15:50:29 +00:00

20 lines
490 B
TypeScript

import type { RenovateConfig } from '../../types';
import { AbstractMigration } from './abstract-migration';
export class RemovePropertyMigration extends AbstractMigration {
override readonly propertyName: string;
constructor(
propertyName: string,
originalConfig: RenovateConfig,
migratedConfig: RenovateConfig,
) {
super(originalConfig, migratedConfig);
this.propertyName = propertyName;
}
override run(): void {
this.delete(this.propertyName);
}
}