Skip to content

Commit

Permalink
fix(cli): prevent production install on add cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
xstevenyung committed Oct 19, 2023
1 parent 3468c06 commit 087e8ce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/astro/src/cli/add/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 087e8ce

Please sign in to comment.