Skip to content

Commit

Permalink
fix: Fix an issue that caused ENOENT on some platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyJones committed Sep 8, 2021
1 parent 3be38b4 commit 943484a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/can-deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export class CanDeploy {
const canDeployPromise = new Promise<CanDeployResponse | string>(
(resolve, reject) => {
const instance = spawn.spawnBinary(
pactStandalone.brokerPath,
pactStandalone.brokerFullPath,
[
{ cliVerb: 'can-i-deploy' },
...CanDeploy.convertForSpawnBinary(this.options),
Expand Down
2 changes: 1 addition & 1 deletion src/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand Down
2 changes: 1 addition & 1 deletion src/publisher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export class Publisher {
return timeout(
new Promise<string[]>((resolve, reject) => {
const instance = spawn.spawnBinary(
pactStandalone.brokerPath,
pactStandalone.brokerFullPath,
[{ cliVerb: 'publish' }, this.options],
this.__argMapping
);
Expand Down
2 changes: 1 addition & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class Server extends AbstractService {
}

super(
pact.mockServicePath,
pact.mockServiceFullPath,
options,
{
port: '--port',
Expand Down
2 changes: 1 addition & 1 deletion src/stub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 943484a

Please sign in to comment.