From 90517c12c513fe671b3e835dc31a979fa461512a Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 25 Aug 2025 19:50:31 +0200 Subject: [PATCH] fix "pnpm run plugins install ep_xxx" (#7093) With previous code, "pnpm run plugins i ep_xxx" is working correctly, but "pnpm run plugins install ep_xxx" does not work correctly (since var `registryPlugins` is empty) Either "pnpm run plugins install ep_xxx" should be disallowed (by removing `case "install"`) or this fix should be applied. --- bin/plugins.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/plugins.ts b/bin/plugins.ts index 17c756f60..9b0b49633 100644 --- a/bin/plugins.ts +++ b/bin/plugins.ts @@ -24,7 +24,7 @@ const possibleActions = [ const install = ()=> { const argsAsString: string = args.join(" "); - const regexRegistryPlugins = /(?<=i\s)(.*?)(?=--github|--path|$)/; + const regexRegistryPlugins = /(?<=(?:i|install)\s)(.*?)(?=--github|--path|$)/; const regexLocalPlugins = /(?<=--path\s)(.*?)(?=--github|$)/; const regexGithubPlugins = /(?<=--github\s)(.*?)(?=--path|$)/; const registryPlugins = argsAsString.match(regexRegistryPlugins)?.[0]?.split(" ")?.filter(s => s) || [];