renovate/lib/modules/manager/composer/index.ts
RahulGautamSingh 2a07e91be6
refactor: convert ProgrammingLanguage to union type (#18748)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-11-05 08:49:57 +00:00

28 lines
851 B
TypeScript

import type { ProgrammingLanguage } from '../../../constants';
import { GitTagsDatasource } from '../../datasource/git-tags';
import { PackagistDatasource } from '../../datasource/packagist';
import { updateArtifacts } from './artifacts';
import { extractPackageFile } from './extract';
import { getRangeStrategy } from './range';
import { updateLockedDependency } from './update-locked';
import { composerVersioningId } from './utils';
export const language: ProgrammingLanguage = 'php';
export const supportsLockFileMaintenance = true;
export {
extractPackageFile,
updateArtifacts,
getRangeStrategy,
updateLockedDependency,
};
export const defaultConfig = {
fileMatch: ['(^|/)([\\w-]*)composer\\.json$'],
versioning: composerVersioningId,
};
export const supportedDatasources = [
GitTagsDatasource.id,
PackagistDatasource.id,
];