Skip to content
This repository has been archived by the owner on May 11, 2018. It is now read-only.

Commit

Permalink
Fixes #143. Log correct targets. (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
yavorsky authored and hzoo committed Jan 27, 2017
1 parent 48bde3b commit 9667dae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)}`;
Expand Down

0 comments on commit 9667dae

Please sign in to comment.