diff options
author | Gar <gar+gh@danger.computer> | 2021-03-01 06:00:58 +0300 |
---|---|---|
committer | Gar <gar+gh@danger.computer> | 2021-03-09 22:10:06 +0300 |
commit | 85a8694dd9b4a924a474ba75261914511a216868 (patch) | |
tree | 1102b6d0df598a59bd85998a2f05f155ba6b1800 /lib/bin.js | |
parent | 7ff152d94d2dbeaacbfc9824d8b1bb6ff96bf0f2 (diff) |
fix(npm.output): make output go through npm.output
All output that anything wants to make now goes through
`npm.output()`. This is an incremental change getting us
closer to where we want to be with testing.
PR-URL: https://github.com/npm/cli/pull/2795
Credit: @wraithgar
Close: #2795
Reviewed-by: @ruyadorno, @isaacs
Diffstat (limited to 'lib/bin.js')
-rw-r--r-- | lib/bin.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/bin.js b/lib/bin.js index 11490c41c..f540cc57c 100644 --- a/lib/bin.js +++ b/lib/bin.js @@ -1,4 +1,3 @@ -const output = require('./utils/output.js') const envPath = require('./utils/path.js') const usageUtil = require('./utils/usage.js') @@ -18,7 +17,7 @@ class Bin { async bin (args) { const b = this.npm.bin - output(b) + this.npm.output(b) if (this.npm.flatOptions.global && !envPath.includes(b)) console.error('(not in PATH env variable)') } |