0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

fix(cli): prevent production install on add cmd (#8870)

This commit is contained in:
Steven Yung 2023-10-20 15:19:05 +02:00 committed by GitHub
parent c36d80a888
commit 5ea6ee0ed4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
prevent production install on astro add cmd

View file

@ -700,7 +700,11 @@ async function tryToInstallIntegrations({
...inheritedFlags,
...installCommand.dependencies,
],
{ cwd }
{
cwd,
// reset NODE_ENV to ensure install command run in dev mode
env: { NODE_ENV: undefined },
}
);
spinner.succeed();
return UpdateResult.updated;