Skip to content

Commit

Permalink
cmd-list: Fix nested aliases, restore alias 'sit': 'cit' (#20513)
Browse files Browse the repository at this point in the history
PR-URL: npm/npm#20513
Credit: @mmermerkaya
Reviewed-By: @zkat
  • Loading branch information
mmermerkaya authored and zkat committed May 16, 2018
1 parent 85b8616 commit 91ef936
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/config/cmd-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ var affordances = {
'rm': 'uninstall',
'r': 'uninstall',
'rum': 'run-script',
'sit': 'install-ci-test',
'sit': 'cit',
'urn': 'run-script'
}

Expand Down
4 changes: 3 additions & 1 deletion lib/npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@
}
if (plumbing.indexOf(c) !== -1) return c
var a = abbrevs[c]
if (aliases[a]) a = aliases[a]
while (aliases[a]) {
a = aliases[a]
}
return a
}

Expand Down

0 comments on commit 91ef936

Please sign in to comment.