diff --git a/src/worker-client.ts b/src/worker-client.ts index ef81d653..432bb918 100644 --- a/src/worker-client.ts +++ b/src/worker-client.ts @@ -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 } });