diff --git a/src/spawn/spawn.ts b/src/spawn/spawn.ts index 09446206..e9a577de 100644 --- a/src/spawn/spawn.ts +++ b/src/spawn/spawn.ts @@ -17,6 +17,10 @@ export class Spawn { argMapping: { [id: string]: string } = {} ): ChildProcess { const envVars = JSON.parse(JSON.stringify(process.env)); // Create copy of environment variables + + envVars['PACT_EXECUTING_LANGUAGE'] = 'node.js' + envVars['PACT_EXECUTING_LANGUAGE_VERSION'] = process.versions.node + // Remove environment variable if there // This is a hack to prevent some weird Travelling Ruby behaviour with Gems // https://github.com/pact-foundation/pact-mock-service-npm/issues/16