diff options
author | nlf <quitlahok@gmail.com> | 2020-10-05 19:46:34 +0300 |
---|---|---|
committer | nlf <quitlahok@gmail.com> | 2020-10-05 19:46:34 +0300 |
commit | d816c2efae41930cbdf4fff8657e0adc450d1dd4 (patch) | |
tree | 29837e09338ea17a656711065f88d10235c32b65 /lib/bin.js | |
parent | ab2c9345475d8825b08ad73f4cae8b92f25acb38 (diff) |
tests: tests for bin command
Diffstat (limited to 'lib/bin.js')
-rw-r--r-- | lib/bin.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bin.js b/lib/bin.js index 9861a7ed5..85b3da747 100644 --- a/lib/bin.js +++ b/lib/bin.js @@ -2,11 +2,11 @@ const npm = require('./npm.js') const output = require('./utils/output.js') const usageUtil = require('./utils/usage.js') const completion = require('./utils/completion/none.js') +const PATH = require('./utils/path.js') const cmd = (args, cb) => bin(args).then(() => cb()).catch(cb) const usage = usageUtil('bin', 'npm bin [-g]') const bin = async (args, cb) => { const b = npm.bin - const PATH = require('./utils/path.js') output(b) if (npm.flatOptions.global && !PATH.includes(b)) { console.error('(not in PATH env variable)') |