0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00

fix: pnpm install command on astro add (#5087)

This commit is contained in:
Juan Martín Seery 2022-10-14 04:08:51 -03:00 committed by GitHub
parent f49d80d637
commit 49a8d18b49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fix `astro add` pnpm command

View file

@ -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;
}