Skip to content

Commit

Permalink
fix: pnpm install command on astro add (#5087)
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanM04 authored Oct 14, 2022
1 parent f49d80d commit 49a8d18
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tender-lemons-remain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fix `astro add` pnpm command
2 changes: 1 addition & 1 deletion packages/astro/src/core/add/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 49a8d18

Please sign in to comment.