From ce178f96bcd0189cea564c534dfd9bcd905a4365 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@keylocation.sg> Date: Wed, 11 Oct 2017 12:05:56 +0200 Subject: [PATCH] chore: improve meteor and docker info log --- lib/workers/repository/apis.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/workers/repository/apis.js b/lib/workers/repository/apis.js index d06ce76c38..3a02876a7d 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); } } -- GitLab