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

Commit

Permalink
feat(createWorker): pass argv and config_argv to spawned processes (#487
Browse files Browse the repository at this point in the history
)
  • Loading branch information
alan-agius4 authored and danbucholtz committed Jan 28, 2017
1 parent 6589550 commit 02dfff8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/worker-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,10 @@ export function createWorker(taskModule: string): any {

try {
const workerModule = join(__dirname, 'worker-process.js');
const worker = fork(workerModule, [], {
const worker = fork(workerModule, process.argv, {
env: {
FORCE_COLOR: true
FORCE_COLOR: true,
npm_config_argv: process.env.npm_config_argv
}
});

Expand Down

0 comments on commit 02dfff8

Please sign in to comment.