0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 13:38:32 +00:00
renovatebot_renovate/lib/config/migrations/custom/composer-ignore-platform-reqs-migration.ts

13 lines
362 B
TypeScript

import is from '@sindresorhus/is';
import { AbstractMigration } from '../base/abstract-migration';
export class ComposerIgnorePlatformReqsMigration extends AbstractMigration {
override readonly propertyName = 'composerIgnorePlatformReqs';
override run(value: unknown): void {
if (is.boolean(value)) {
this.rewrite(value ? [] : null);
}
}
}