Skip to content

Commit

Permalink
Merge pull request #359 from Inksprout/chore-add-executing-language-e…
Browse files Browse the repository at this point in the history
…nvvars

feat: collect usage telemetry data
  • Loading branch information
mefellows authored Feb 9, 2022
2 parents 36f783f + 8f4e364 commit 4caae3f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/spawn/spawn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4caae3f

Please sign in to comment.