Files
Jamie Tanna 3888247209 docs(manager): make sure that Supported Datasources are de-duped and sorted (#44765)
* docs(manager): make sure that Supported Datasources are de-duped and sorted

As noted in #44764, we otherwise end up with a lot of duplicated
entries for `renovate-config`.

We can also sort them to make ti a slightly more readable list.

* chore(manager/renovate-config): dedupe `supportedDatasources`
2026-07-22 08:50:15 +00:00

24 lines
778 B
TypeScript

import { getConfigFileNames } from '../../../config/app-strings.ts';
import { allToolConfig } from '../../../util/exec/containerbase.ts';
import { GiteaTagsDatasource } from '../../datasource/gitea-tags/index.ts';
import { GithubTagsDatasource } from '../../datasource/github-tags/index.ts';
import { GitlabTagsDatasource } from '../../datasource/gitlab-tags/index.ts';
export { extractPackageFile } from './extract.ts';
export const defaultConfig = {
managerFilePatterns: getConfigFileNames().filter(
(name) => name !== 'package.json',
),
};
export const supportedDatasources = Array.from(
new Set([
GithubTagsDatasource.id,
GitlabTagsDatasource.id,
GiteaTagsDatasource.id,
...Object.values(allToolConfig).map((conf) => conf.datasource),
]),
);