From d87aa62b37a0c24aadcbb39a78f29b889b343aba Mon Sep 17 00:00:00 2001 From: Hutson Betts <destroyerofbuilds@users.noreply.github.com> Date: Fri, 9 Mar 2018 11:47:35 -0600 Subject: [PATCH] fix(config-validator): support preset configs (#1635) Fixes #1632 --- bin/config-validator.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/config-validator.js b/bin/config-validator.js index ba6f9c3919..422c053b36 100644 --- a/bin/config-validator.js +++ b/bin/config-validator.js @@ -51,7 +51,9 @@ try { } if (pkgJson['renovate-config']) { console.log(`Validating package.json > renovate-config`); - validate('package.json > renovate-config', pkgJson['renovate-config']); + Object.values(pkgJson['renovate-config']).forEach(presetConfig => { + validate('package.json > renovate-config', presetConfig); + }); } } catch (err) { // ignore -- GitLab