@govuk-pay/cli 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@govuk-pay/cli",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "GOV.UK Pay Command Line Interface",
5
5
  "bin": {
6
6
  "pay": "bin/cli.js",
@@ -44,7 +44,9 @@ async function proxyArrayOfArgumentsToLegacyCli(argsToPassOn) {
44
44
  const rbenvCommand = process.env.PAY_CLI_RBENV_COMMAND ?? 'rbenv';
45
45
  const shellCommand = process.env.PAY_CLI_SHELL_COMMAND ?? 'zsh';
46
46
  const whichRbenvResult = await (0, payCliExec_1.execAndReturnIO)(`which ${rbenvCommand}`);
47
- const whichBundlerResult = await (0, payCliExec_1.execAndReturnIO)(`${rbenvCommand} exec which bundle`);
47
+ const whichBundlerResult = await (0, payCliExec_1.execAndReturnIO)(`${rbenvCommand} exec bundle --version`, {
48
+ cwd: path.join(constants_1.rootDir, 'legacy-ruby-cli')
49
+ });
48
50
  if (whichRbenvResult.exitCode !== 0) {
49
51
  console.error('You need rbenv installed before you can continue.');
50
52
  process.exit(12);