gtx-cli 2.5.29-bin.3 → 2.5.29-bin.5

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.
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -4,7 +4,6 @@ import { spawn } from 'child_process';
4
4
  import { fileURLToPath } from 'url';
5
5
  import { dirname, join } from 'path';
6
6
  import { existsSync, chmodSync, statSync } from 'fs';
7
- console.log('Running bin-main.ts');
8
7
  const __filename = fileURLToPath(import.meta.url);
9
8
  const __dirname = dirname(__filename);
10
9
  function detectPlatform() {
@@ -31,7 +30,7 @@ function routeToBinary() {
31
30
  if (!binaryName) {
32
31
  return;
33
32
  }
34
- const binaryPath = join(__dirname, '../..', 'binaries', binaryName);
33
+ const binaryPath = join(__dirname, '..', '..', 'binaries', binaryName);
35
34
  if (!existsSync(binaryPath)) {
36
35
  return;
37
36
  }
@@ -50,20 +49,16 @@ function routeToBinary() {
50
49
  }
51
50
  }
52
51
  // Spawn the appropriate binary with all arguments
53
- console.log('Spawning binary:', binaryPath, process.argv.slice(2));
54
52
  const child = spawn(binaryPath, process.argv.slice(2), {
55
53
  stdio: 'inherit',
56
54
  });
57
55
  child.on('close', (code) => {
58
- console.log('Binary closed with code:', code);
59
56
  process.exit(code);
60
57
  });
61
- child.on('error', (error) => {
62
- console.error('Error spawning binary:', error);
58
+ child.on('error', () => {
63
59
  process.exit(1);
64
60
  });
65
61
  return;
66
62
  }
67
63
  // Entry point
68
- console.log('Entry point');
69
64
  routeToBinary();
@@ -1 +1 @@
1
- export declare const PACKAGE_VERSION = "2.5.29-bin.3";
1
+ export declare const PACKAGE_VERSION = "2.5.29-bin.5";
@@ -1,2 +1,2 @@
1
1
  // This file is auto-generated. Do not edit manually.
2
- export const PACKAGE_VERSION = '2.5.29-bin.3';
2
+ export const PACKAGE_VERSION = '2.5.29-bin.5';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gtx-cli",
3
- "version": "2.5.29-bin.3",
3
+ "version": "2.5.29-bin.5",
4
4
  "main": "dist/index.js",
5
5
  "bin": "dist/bin/bin-main.js",
6
6
  "files": [