diff options
author | isaacs <i@izs.me> | 2020-03-17 19:52:00 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2020-05-08 04:12:27 +0300 |
commit | 2eee7a4376d765218c8804deb48da3de760fd6cc (patch) | |
tree | 59b4ab0e0d82551b9aea95a52e7e640d87680951 /lib | |
parent | 060850b74ad1da52c65bf56ce5278f2ac939b517 (diff) |
Remove littleGuys, no longer relevant
The 'littleGuys' (ie, isntall, verison, udpate) are included in the
cmdList.affordances section, so are no longer printed in the default
help banner anyway. We can remove this variable.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/npm.js | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/npm.js b/lib/npm.js index 8567f5b37..b16ee36ff 100644 --- a/lib/npm.js +++ b/lib/npm.js @@ -92,17 +92,11 @@ var commandCache = {} var aliasNames = Object.keys(aliases) - var littleGuys = [ 'isntall', 'verison' ] - var fullList = cmdList.concat(aliasNames).filter(function (c) { + var fullList = npm.fullList = cmdList.concat(aliasNames).filter(c => { return plumbing.indexOf(c) === -1 }) var abbrevs = abbrev(fullList) - // we have our reasons - fullList = npm.fullList = fullList.filter(function (c) { - return littleGuys.indexOf(c) === -1 - }) - Object.keys(abbrevs).concat(plumbing).forEach(function addCommand (c) { Object.defineProperty(npm.commands, c, { get: function () { if (!loaded) { |