From 8f53ae48558edfbc90c9ac8a400dbe2b11608dc4 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@keylocation.sg> Date: Thu, 15 Jun 2017 21:42:31 +0200 Subject: [PATCH] Fix check for string packageFiles config (#307) --- lib/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 089187711e..612d478fbb 100644 --- a/lib/index.js +++ b/lib/index.js @@ -150,7 +150,10 @@ async function findPackageFiles(config) { async function getAllRepoUpgrades(repo) { let upgrades = []; - for (const packageFile of repo.packageFiles) { + for (let packageFile of repo.packageFiles) { + if (typeof packageFile === 'string') { + packageFile = { fileName: packageFile }; + } const cascadedConfig = configParser.getCascadedConfig(repo, packageFile); upgrades = upgrades.concat( await worker.processPackageFile( -- GitLab