mirror of
https://github.com/renovatebot/renovate.git
synced 2024-12-22 13:38:32 +00:00
20 lines
490 B
TypeScript
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);
|
|
}
|
|
}
|