Skip to content

Commit

Permalink
Remove littleGuys, no longer relevant
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
isaacs committed Mar 17, 2020
1 parent b919531 commit c7dd395
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c7dd395

Please sign in to comment.