Skip to content
This repository has been archived by the owner on Jul 21, 2020. It is now read-only.

Commit

Permalink
fix(quickstart): force development env so dev dependencies install
Browse files Browse the repository at this point in the history
* fix(quickstart): force development env so dev dependencies install

* fix(*): use spread to avoid mutating global process state
  • Loading branch information
DeekyJay authored and connor4312 committed May 7, 2018
1 parent e8d4b3e commit 3d21e36
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/server/tasks/npm-install-task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ export class NpmInstallTask extends ConsoleTask<void> {
protected async spawnChildProcess(): Promise<[void, ChildProcess]> {
const childProcess = spawn('npm', ['install', '-d', '--color=always'], {
cwd: this.directory,
env: process.env,
env: {
...process.env,
NODE_ENV: 'development',
},
shell: true,
});

Expand Down

0 comments on commit 3d21e36

Please sign in to comment.