From ca165f2a1d2199b24597be455bb8f4a7dbe5b9fc Mon Sep 17 00:00:00 2001 From: SamTV12345 <40429738+samtv12345@users.noreply.github.com> Date: Sat, 1 Jun 2024 11:59:19 +0200 Subject: [PATCH] Improved handling of install. --- bin/plugins.ts | 7 ------- package.json | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/bin/plugins.ts b/bin/plugins.ts index ee42e518a..06723eb0a 100644 --- a/bin/plugins.ts +++ b/bin/plugins.ts @@ -90,13 +90,6 @@ const remove = (plugins: string[])=>{ let action = args[0]; -if (!possibleActions.includes(action)) { - // This is the old plugin install via install-plugins - console.warn("Using legacy plugin install. Please update to the new command `pnpm run plugins install `") - install() - process.exit(0) -} - switch (action) { case "install": install(); diff --git a/package.json b/package.json index 701204ed1..d5e183d56 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "test-admin": "pnpm --filter ep_etherpad-lite run test-admin", "test-admin:ui": "pnpm --filter ep_etherpad-lite run test-admin:ui", "plugins": "pnpm --filter bin run plugins", - "install-plugins": "pnpm --filter bin run plugins", + "install-plugins": "pnpm --filter bin run plugins i", "remove-plugins": "pnpm --filter bin run remove-plugins", "list-plugins": "pnpm --filter bin run list-plugins" },