From 85a4089de7b91591ebd57b42b8008400ace54d94 Mon Sep 17 00:00:00 2001 From: Artem Yavorsky Date: Thu, 26 Jan 2017 13:48:30 +0200 Subject: [PATCH] Fixes #143. Log correct targets. --- src/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 9a9af827..6054b546 100644 --- a/src/index.js +++ b/src/index.js @@ -132,7 +132,9 @@ const logPlugin = (plugin, targets, list) => { const envList = list[plugin] || {}; const filteredList = Object.keys(targets) .reduce((a, b) => { - a[b] = envList[b]; + if (!envList[b] || targets[b] < envList[b]) { + a[b] = targets[b]; + } return a; }, {}); const logStr = ` ${plugin} ${JSON.stringify(filteredList)}`;