diff options
author | 2022-10-14 04:08:51 -0300 | |
---|---|---|
committer | 2022-10-14 15:08:51 +0800 | |
commit | 49a8d18b4993d899a05ee8230fdd012fb633533f (patch) | |
tree | adb49e98efdb8d5b6f2e0650738d327cea05c68e | |
parent | f49d80d637e7ba6598139877b1081d7983d41e6c (diff) | |
download | astro-49a8d18b4993d899a05ee8230fdd012fb633533f.tar.gz astro-49a8d18b4993d899a05ee8230fdd012fb633533f.tar.zst astro-49a8d18b4993d899a05ee8230fdd012fb633533f.zip |
fix: pnpm install command on astro add (#5087)
-rw-r--r-- | .changeset/tender-lemons-remain.md | 5 | ||||
-rw-r--r-- | packages/astro/src/core/add/index.ts | 2 |
2 files changed, 6 insertions, 1 deletions
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; } |