gtx-cli 2.5.30-alpha.7 → 2.5.30-alpha.9

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
@@ -1,12 +1,11 @@
1
1
  import path from 'node:path';
2
2
  import { fileURLToPath } from 'node:url';
3
- import { logger } from '../console/logger.js';
4
3
  const __dirname = path.dirname(fileURLToPath(import.meta.url));
5
4
  export function fromPackageRoot(relative) {
6
- logger.error('fromPackageRoot __dirname' + __dirname);
5
+ console.log('fromPackageRoot __dirname' + __dirname);
7
6
  return path.resolve(__dirname, `../../`, relative);
8
7
  }
9
8
  export function fromBinariesRoot(relative) {
10
- logger.error('fromBinariesRoot __dirname' + __dirname);
9
+ console.log('fromBinariesRoot __dirname' + __dirname);
11
10
  return path.resolve(__dirname, `../`, relative);
12
11
  }
@@ -33,6 +33,8 @@ export async function getPackageJson(cwd = process.cwd()) {
33
33
  }
34
34
  }
35
35
  export function getCLIVersion() {
36
+ console.log('getCLIVersion');
37
+ logger.error('getCLIVersion -- logger');
36
38
  let packageJsonPath = fromPackageRoot('package.json');
37
39
  if (!fs.existsSync(packageJsonPath)) {
38
40
  // Try binaries behavior instead
@@ -43,11 +45,11 @@ export function getCLIVersion() {
43
45
  }
44
46
  try {
45
47
  const result = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8')).version;
46
- logger.error('CLI version: ' + result);
48
+ console.log('CLI version: ' + result);
47
49
  return result;
48
50
  }
49
51
  catch (error) {
50
- logger.error(chalk.red('Error getting CLI version: ' + String(error)));
52
+ console.log(chalk.red('Error getting CLI version: ' + String(error)));
51
53
  return 'unknown';
52
54
  }
53
55
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gtx-cli",
3
- "version": "2.5.30-alpha.7",
3
+ "version": "2.5.30-alpha.9",
4
4
  "main": "dist/index.js",
5
5
  "bin": "dist/router.js",
6
6
  "files": [