diff options
Diffstat (limited to 'deps/npm/lib/link.js')
-rw-r--r-- | deps/npm/lib/link.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/deps/npm/lib/link.js b/deps/npm/lib/link.js index 3624a16c98e..54b8dcac7a4 100644 --- a/deps/npm/lib/link.js +++ b/deps/npm/lib/link.js @@ -11,6 +11,7 @@ var path = require('path') var build = require('./build.js') var npa = require('npm-package-arg') var usage = require('./utils/usage') +var output = require('./utils/output.js') module.exports = link @@ -179,9 +180,7 @@ function resultPrinter (pkg, src, dest, rp, cb) { return parseableOutput(dest, rp || src, cb) } if (rp === src) rp = null - log.clearProgress() - console.log(where + ' -> ' + src + (rp ? ' -> ' + rp : '')) - log.showProgress() + output(where + ' -> ' + src + (rp ? ' -> ' + rp : '')) cb() } @@ -193,8 +192,6 @@ function parseableOutput (dest, rp, cb) { // *just* print the target folder. // However, we don't actually ever read the version number, so // the second field is always blank. - log.clearProgress() - console.log(dest + '::' + rp) - log.showProgress() + output(dest + '::' + rp) cb() } |