diff --git a/lib/workers/repository/apis.js b/lib/workers/repository/apis.js index d06ce76c38609bcea9191775164a7c4e03d87237..3a02876a7d3beca49ae3c49e5c8cf984f8664f5b 100644 --- a/lib/workers/repository/apis.js +++ b/lib/workers/repository/apis.js @@ -287,7 +287,7 @@ async function detectPackageFiles(input) { } } if (config.packageFiles.length) { - config.types['npm'] = true; + config.types.npm = true; } } if (config.meteor.enabled) { @@ -295,17 +295,20 @@ async function detectPackageFiles(input) { 'package.js', 'Npm.depends' ); - logger.info(`Found ${meteorPackageFiles.length} meteor package files`); if (meteorPackageFiles.length) { - config.types['meteor'] = true; + logger.info( + { count: meteorPackageFiles.length }, + `Found meteor package files` + ); + config.types.meteor = true; config.packageFiles = config.packageFiles.concat(meteorPackageFiles); } } if (config.docker.enabled) { const dockerFiles = await config.api.findFilePaths('Dockerfile'); - logger.info(`Found ${dockerFiles.length} Dockerfiles`); if (dockerFiles.length) { - config.types['docker'] = true; + logger.info({ count: dockerFiles.length }, `Found Dockerfiles`); + config.types.docker = true; config.packageFiles = config.packageFiles.concat(dockerFiles); } }