From b6454d7ea48b5f8c43cf3b358a7b12dcbf216fde Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Wed, 7 Oct 2026 14:33:14 +0200 Subject: [PATCH] fix(website): show paseo plugin add as the registry install command --- packages/website/e2e/plugins.spec.ts | 6 +++--- packages/website/src/plugins/registry.test.ts | 2 +- packages/website/src/plugins/registry.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/website/e2e/plugins.spec.ts b/packages/website/e2e/plugins.spec.ts index 2793792845..015d362338 100644 --- a/packages/website/e2e/plugins.spec.ts +++ b/packages/website/e2e/plugins.spec.ts @@ -41,14 +41,14 @@ test("browses from the directory into a category, a plugin, and its author", asy await page.getByRole("link", { name: /Fresh Worktrees/ }).click(); await expect(page).toHaveURL(/\/plugins\/omercnet\/fresh-worktrees$/); await expect(page.getByRole("heading", { name: "Fresh Worktrees" })).toHaveCount(1); - await expect(page.getByText("paseo plugin install omercnet/fresh-worktrees")).toHaveCount(1); + await expect(page.getByText("paseo plugin add omercnet/fresh-worktrees")).toHaveCount(1); await expect( page.getByRole("heading", { level: 2, name: "Behavior", exact: true }), ).toBeVisible(); await page.getByRole("button", { name: "Copy to clipboard" }).click(); await expect .poll(() => page.evaluate(() => (window as unknown as { __copied?: string }).__copied)) - .toBe("paseo plugin install omercnet/fresh-worktrees"); + .toBe("paseo plugin add omercnet/fresh-worktrees"); await expect(page.getByRole("link", { name: "Git", exact: true })).toHaveAttribute( "href", "/plugins/category/git", @@ -242,7 +242,7 @@ test.describe("search engine visits without JavaScript", () => { expect(response?.status()).toBe(200); expect(response?.headers()["cache-control"]).toBe("private, no-store"); expect(response?.headers()["x-robots-tag"]).toBeUndefined(); - await expect(page.getByText("paseo plugin install omercnet/fresh-worktrees")).toBeVisible(); + await expect(page.getByText("paseo plugin add omercnet/fresh-worktrees")).toBeVisible(); await expect( page.getByRole("heading", { level: 2, name: "Behavior", exact: true }), ).toBeVisible(); diff --git a/packages/website/src/plugins/registry.test.ts b/packages/website/src/plugins/registry.test.ts index b6135351b3..ec6724137d 100644 --- a/packages/website/src/plugins/registry.test.ts +++ b/packages/website/src/plugins/registry.test.ts @@ -263,7 +263,7 @@ describe("plugin registry", () => { ); }); it("offers a registry install command", () => { - expect(installCommand(plugin)).toBe("paseo plugin install acme/example"); + expect(installCommand(plugin)).toBe("paseo plugin add acme/example"); expect(formatInstalls(1250)).toBe("1.3k"); }); }); diff --git a/packages/website/src/plugins/registry.ts b/packages/website/src/plugins/registry.ts index 13bfc0d1ca..37a4455d0c 100644 --- a/packages/website/src/plugins/registry.ts +++ b/packages/website/src/plugins/registry.ts @@ -41,7 +41,7 @@ export function getPluginsByAuthor(plugins: Plugin[], owner: string): Plugin[] { return plugins.filter((plugin) => pluginOwner(plugin) === owner); } export function installCommand(plugin: Plugin): string { - return `paseo plugin install ${plugin.id}`; + return `paseo plugin add ${plugin.id}`; } export function pluginVersion(plugin: Plugin): string { return plugin.artifact.kind === "npm"