From 943484a6feb8d015f95e8394b82d7f4a07a085f8 Mon Sep 17 00:00:00 2001 From: Timothy Jones Date: Wed, 8 Sep 2021 20:33:12 +1000 Subject: [PATCH] fix: Fix an issue that caused ENOENT on some platforms --- src/can-deploy.ts | 2 +- src/message.ts | 2 +- src/publisher.ts | 2 +- src/server.ts | 2 +- src/stub.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/can-deploy.ts b/src/can-deploy.ts index 66c673d5..dc2e4105 100644 --- a/src/can-deploy.ts +++ b/src/can-deploy.ts @@ -99,7 +99,7 @@ export class CanDeploy { const canDeployPromise = new Promise( (resolve, reject) => { const instance = spawn.spawnBinary( - pactStandalone.brokerPath, + pactStandalone.brokerFullPath, [ { cliVerb: 'can-i-deploy' }, ...CanDeploy.convertForSpawnBinary(this.options), diff --git a/src/message.ts b/src/message.ts index 0bbc181a..8fb7defb 100644 --- a/src/message.ts +++ b/src/message.ts @@ -82,7 +82,7 @@ export class Message { const { pactFileWriteMode, content, ...restOptions } = this.options; const instance = spawn.spawnBinary( - pactStandalone.messagePath, + pactStandalone.messageFullPath, [{ pactFileWriteMode }, restOptions], this.__argMapping ); diff --git a/src/publisher.ts b/src/publisher.ts index 143f072f..a438a4f7 100644 --- a/src/publisher.ts +++ b/src/publisher.ts @@ -101,7 +101,7 @@ export class Publisher { return timeout( new Promise((resolve, reject) => { const instance = spawn.spawnBinary( - pactStandalone.brokerPath, + pactStandalone.brokerFullPath, [{ cliVerb: 'publish' }, this.options], this.__argMapping ); diff --git a/src/server.ts b/src/server.ts index 618c18b9..754e8c6a 100644 --- a/src/server.ts +++ b/src/server.ts @@ -64,7 +64,7 @@ export class Server extends AbstractService { } super( - pact.mockServicePath, + pact.mockServiceFullPath, options, { port: '--port', diff --git a/src/stub.ts b/src/stub.ts index a2c9ee92..8c4589d7 100644 --- a/src/stub.ts +++ b/src/stub.ts @@ -18,7 +18,7 @@ export class Stub extends AbstractService { checkTypes.assert.not.emptyArray(options.pactUrls); - super(`${pact.stubPath}`, options, { + super(pact.stubFullPath, options, { pactUrls: DEFAULT_ARG, port: '--port', host: '--host',