Skip to content

Commit 8a63dc8

Browse files
authored
Merge pull request #386 from pact-foundation/expose_pactflow_command
Expose pactflow command
2 parents c6f0c41 + 811efa0 commit 8a63dc8

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

bin/pactflow.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env node
2+
3+
import standalone from '../src/pact-standalone';
4+
import childProcess = require('child_process');
5+
6+
const status = childProcess.spawnSync(
7+
standalone.pactFullPath,
8+
process.argv.slice(2),
9+
{
10+
stdio: 'inherit',
11+
}
12+
).status;
13+
process.exit(status);

package-lock.json

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"pact-mock-service": "bin/pact-mock-service.js",
1212
"pact-stub-service": "bin/pact-stub-service.js",
1313
"pact-provider-verifier": "bin/pact-provider-verifier.js",
14-
"pact-message": "bin/pact-message.js"
14+
"pact-message": "bin/pact-message.js",
15+
"pactflow": "bin/pactflow.js"
1516
},
1617
"os": [
1718
"darwin",

0 commit comments

Comments
 (0)