diff options
author | Kat Marchán <kzm@sykosomatic.org> | 2017-06-02 08:08:07 +0300 |
---|---|---|
committer | Kat Marchán <kzm@sykosomatic.org> | 2017-06-02 08:14:31 +0300 |
commit | 37b85db02a8f74750b956f2ca881e3ce34599be9 (patch) | |
tree | 7285cb5744eaa44348c01d743ea4978910a13f3d | |
parent | 362f9fd5bec65301082416b4292b8fe3eb7f824a (diff) |
install: bikeshed new package output
Credit: @zkat
-rw-r--r-- | lib/install.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/install.js b/lib/install.js index 266a92545..67dcf98b7 100644 --- a/lib/install.js +++ b/lib/install.js @@ -741,8 +741,10 @@ Installer.prototype.printInstalledForHuman = function (diffs, cb) { } }) var report = '' - if (added && this.args.length) { - report += this.args.map((p) => p.name + '@' + p.version).join('\n') + '\n' + if (this.args.length && (added || updated)) { + report += this.args.map((p) => { + return `+ ${p.name}@${p.version}` + }).join('\n') + '\n' } var actions = [] if (added) actions.push('added ' + packages(added)) |