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

Commit 02dfff8

Browse files
alan-agius4danbucholtz
authored andcommitted
feat(createWorker): pass argv and config_argv to spawned processes (#487)
1 parent 6589550 commit 02dfff8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/worker-client.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,10 @@ export function createWorker(taskModule: string): any {
9191

9292
try {
9393
const workerModule = join(__dirname, 'worker-process.js');
94-
const worker = fork(workerModule, [], {
94+
const worker = fork(workerModule, process.argv, {
9595
env: {
96-
FORCE_COLOR: true
96+
FORCE_COLOR: true,
97+
npm_config_argv: process.env.npm_config_argv
9798
}
9899
});
99100

0 commit comments

Comments
 (0)