Skip to content

Commit

Permalink
feat: expose pactflow pact-ruby-standalone command
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Aug 9, 2022
1 parent c6f0c41 commit d9f9fc7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
13 changes: 13 additions & 0 deletions bin/pactflow.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env node

import standalone from '../src/pact-standalone';
import childProcess = require('child_process');

const status = childProcess.spawnSync(
standalone.pactFullPath,
process.argv.slice(2),
{
stdio: 'inherit',
}
).status;
process.exit(status);
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"pact-mock-service": "bin/pact-mock-service.js",
"pact-stub-service": "bin/pact-stub-service.js",
"pact-provider-verifier": "bin/pact-provider-verifier.js",
"pact-message": "bin/pact-message.js"
"pact-message": "bin/pact-message.js",
"pactflow": "bin/pactflow.js"
},
"os": [
"darwin",
Expand Down

0 comments on commit d9f9fc7

Please sign in to comment.