mirror of
https://github.com/withastro/astro.git
synced 2024-12-30 22:03:56 -05:00
fix(cli): reset NODE_ENV
to ensure install command run in dev mode (#12338)
This commit is contained in:
parent
94eaeea1c4
commit
9ca89b3e13
2 changed files with 12 additions and 1 deletions
5
.changeset/itchy-flowers-report.md
Normal file
5
.changeset/itchy-flowers-report.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Resets `NODE_ENV` to ensure install command run in dev mode
|
|
@ -144,7 +144,13 @@ async function installPackage(
|
||||||
await exec(
|
await exec(
|
||||||
installCommand.pm,
|
installCommand.pm,
|
||||||
[installCommand.command, ...installCommand.flags, ...installCommand.dependencies],
|
[installCommand.command, ...installCommand.flags, ...installCommand.dependencies],
|
||||||
{ nodeOptions: { cwd: cwd } },
|
{
|
||||||
|
nodeOptions: {
|
||||||
|
cwd,
|
||||||
|
// reset NODE_ENV to ensure install command run in dev mode
|
||||||
|
env: { NODE_ENV: undefined },
|
||||||
|
}
|
||||||
|
},
|
||||||
);
|
);
|
||||||
spinner.succeed();
|
spinner.succeed();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue