import { logger } from '../../../logger'; import { getManagerList } from '../../../manager'; import { getManagerConfig, RenovateConfig } from '../../../config'; import { getManagerPackageFiles } from './manager-files'; import { PackageFile } from '../../../manager/common'; export async function extractAllDependencies( config: RenovateConfig ): Promise> { const extractions: Record = {}; let fileCount = 0; for (const manager of getManagerList()) { if ( config.enabledManagers.length && !config.enabledManagers.includes(manager) ) { logger.debug(`${manager} is not in enabledManagers list - skipping`); continue; // eslint-disable-line } const managerConfig = getManagerConfig(config, manager); managerConfig.manager = manager; const packageFiles = await getManagerPackageFiles(managerConfig); if (packageFiles && packageFiles.length) { fileCount += packageFiles.length; logger.info(`Found ${manager} package files`); extractions[manager] = packageFiles; } } logger.debug(`Found ${fileCount} package file(s)`); return extractions; }