Skip to content

Commit

Permalink
feat: collect usage telemetry data
Browse files Browse the repository at this point in the history
  • Loading branch information
Inksprout committed Feb 2, 2022
1 parent 36f783f commit f97e114
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 f97e114

Please sign in to comment.