@datatruck/cli 0.36.0 → 0.36.1

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.
@@ -35,7 +35,13 @@ function createCronServer(options, config) {
35
35
  ? ({ ...action.options, confirm: true })
36
36
  : action.options);
37
37
  const [node, bin] = process.argv;
38
- await async_process_1.AsyncProcess.exec(node, [bin, "-c", config.configPath, action.name, ...cliOptions], { $log: config.verbose });
38
+ await async_process_1.AsyncProcess.exec(node, [
39
+ process.env.pm_exec_path ?? bin,
40
+ "-c",
41
+ config.configPath,
42
+ action.name,
43
+ ...cliOptions,
44
+ ], { $log: config.verbose });
39
45
  if (config.log)
40
46
  console.info(`< [job] ${index} - ${action.name}`);
41
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datatruck/cli",
3
- "version": "0.36.0",
3
+ "version": "0.36.1",
4
4
  "description": "Tool for creating and managing backups",
5
5
  "homepage": "https://github.com/swordev/datatruck#readme",
6
6
  "bugs": {