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