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:
parent
c36d80a888
commit
5ea6ee0ed4
2 changed files with 10 additions and 1 deletions
5
.changeset/great-queens-yawn.md
Normal file
5
.changeset/great-queens-yawn.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
prevent production install on astro add cmd
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue