From 49a8d18b4993d899a05ee8230fdd012fb633533f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Mart=C3=ADn=20Seery?= Date: Fri, 14 Oct 2022 04:08:51 -0300 Subject: [PATCH] fix: pnpm install command on astro add (#5087) --- .changeset/tender-lemons-remain.md | 5 +++++ packages/astro/src/core/add/index.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/tender-lemons-remain.md diff --git a/.changeset/tender-lemons-remain.md b/.changeset/tender-lemons-remain.md new file mode 100644 index 000000000..e983a3824 --- /dev/null +++ b/.changeset/tender-lemons-remain.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Fix `astro add` pnpm command diff --git a/packages/astro/src/core/add/index.ts b/packages/astro/src/core/add/index.ts index 396bf7eb9..457b6e533 100644 --- a/packages/astro/src/core/add/index.ts +++ b/packages/astro/src/core/add/index.ts @@ -573,7 +573,7 @@ async function getInstallIntegrationsCommand({ case 'yarn': return { pm: 'yarn', command: 'add', flags: [], dependencies }; case 'pnpm': - return { pm: 'pnpm', command: 'install', flags: [], dependencies }; + return { pm: 'pnpm', command: 'add', flags: [], dependencies }; default: return null; }