From 5471ff5fe8f74f46cdc2bb056ba9b496c7dd1a78 Mon Sep 17 00:00:00 2001 From: Gar Date: Thu, 17 Mar 2022 10:57:53 -0700 Subject: [PATCH] fix: add isntall alias to install (#4573) Without this, the isntall-clean alias is matched and ran --- lib/utils/cmd-list.js | 1 + tap-snapshots/test/lib/commands/completion.js.test.cjs | 1 + tap-snapshots/test/lib/load-all-commands.js.test.cjs | 2 +- tap-snapshots/test/lib/utils/cmd-list.js.test.cjs | 2 ++ tap-snapshots/test/lib/utils/npm-usage.js.test.cjs | 2 +- 5 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/utils/cmd-list.js b/lib/utils/cmd-list.js index 26da539006588..b3089a62c60d2 100644 --- a/lib/utils/cmd-list.js +++ b/lib/utils/cmd-list.js @@ -37,6 +37,7 @@ const affordances = { isnt: 'install', isnta: 'install', isntal: 'install', + isntall: 'install', 'install-clean': 'ci', 'isntall-clean': 'ci', hlep: 'help', diff --git a/tap-snapshots/test/lib/commands/completion.js.test.cjs b/tap-snapshots/test/lib/commands/completion.js.test.cjs index 13a3f66ef7d15..4fa3a2179e6ee 100644 --- a/tap-snapshots/test/lib/commands/completion.js.test.cjs +++ b/tap-snapshots/test/lib/commands/completion.js.test.cjs @@ -143,6 +143,7 @@ Array [ isnt isnta isntal + isntall install-clean isntall-clean hlep diff --git a/tap-snapshots/test/lib/load-all-commands.js.test.cjs b/tap-snapshots/test/lib/load-all-commands.js.test.cjs index d84cdfb305e90..138a8eab68456 100644 --- a/tap-snapshots/test/lib/load-all-commands.js.test.cjs +++ b/tap-snapshots/test/lib/load-all-commands.js.test.cjs @@ -455,7 +455,7 @@ Options: [-w|--workspace [-w|--workspace ...]] [-ws|--workspaces] [--include-workspace-root] -aliases: i, in, ins, inst, insta, instal, isnt, isnta, isntal, add +aliases: i, in, ins, inst, insta, instal, isnt, isnta, isntal, isntall, add Run "npm help install" for more info ` diff --git a/tap-snapshots/test/lib/utils/cmd-list.js.test.cjs b/tap-snapshots/test/lib/utils/cmd-list.js.test.cjs index 971580792048b..f842e689f1631 100644 --- a/tap-snapshots/test/lib/utils/cmd-list.js.test.cjs +++ b/tap-snapshots/test/lib/utils/cmd-list.js.test.cjs @@ -27,6 +27,7 @@ Object { "isnt": "install", "isnta": "install", "isntal": "install", + "isntall": "install", "isntall-clean": "ci", "issues": "bugs", "la": "ll", @@ -71,6 +72,7 @@ Object { "isnt": "install", "isnta": "install", "isntal": "install", + "isntall": "install", "isntall-clean": "ci", "issues": "bugs", "it": "install-test", diff --git a/tap-snapshots/test/lib/utils/npm-usage.js.test.cjs b/tap-snapshots/test/lib/utils/npm-usage.js.test.cjs index 42c24fabdfd61..c813cd83e40b1 100644 --- a/tap-snapshots/test/lib/utils/npm-usage.js.test.cjs +++ b/tap-snapshots/test/lib/utils/npm-usage.js.test.cjs @@ -564,7 +564,7 @@ All commands: [-w|--workspace [-w|--workspace ...]] [-ws|--workspaces] [--include-workspace-root] - aliases: i, in, ins, inst, insta, instal, isnt, isnta, isntal, add + aliases: i, in, ins, inst, insta, instal, isnt, isnta, isntal, isntall, add Run "npm help install" for more info