gtx-cli 2.3.9-alpha.0 → 2.3.10

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # gtx-cli
2
2
 
3
+ ## 2.3.10
4
+
5
+ ### Patch Changes
6
+
7
+ - [#731](https://github.com/generaltranslation/gt/pull/731) [`6896570`](https://github.com/generaltranslation/gt/commit/68965708f43f1bdd0315aa96ce69b6ef6d68260d) Thanks [@SamEggert](https://github.com/SamEggert)! - check for gt.config.json in the .locadex directory
8
+
9
+ ## 2.3.9
10
+
11
+ ### Patch Changes
12
+
13
+ - [#715](https://github.com/generaltranslation/gt/pull/715) [`cc6c06a`](https://github.com/generaltranslation/gt/commit/cc6c06abf0ad0f00f55825e85d59d199ffbec263) Thanks [@brian-lou](https://github.com/brian-lou)! - Instead of throwing errors, CLI will now call process.exit
14
+
3
15
  ## 2.3.8
4
16
 
5
17
  ### Patch Changes
@@ -15,5 +15,11 @@ export function resolveConfig(cwd) {
15
15
  config: loadConfig(path.join(cwd, 'src/gt.config.json')),
16
16
  };
17
17
  }
18
+ if (fs.existsSync(path.join(cwd, '.locadex/gt.config.json'))) {
19
+ return {
20
+ path: path.join(cwd, '.locadex/gt.config.json'),
21
+ config: loadConfig(path.join(cwd, '.locadex/gt.config.json')),
22
+ };
23
+ }
18
24
  return null;
19
25
  }
@@ -1,7 +1,7 @@
1
1
  import chalk from 'chalk';
2
2
  import path from 'node:path';
3
3
  import fs from 'node:fs';
4
- import { logError } from '../console/logging.js';
4
+ import { logWarning, logError } from '../console/logging.js';
5
5
  export function determineLibrary() {
6
6
  let library = 'base';
7
7
  const additionalModules = [];
@@ -11,7 +11,7 @@ export function determineLibrary() {
11
11
  const packageJsonPath = path.join(cwd, 'package.json');
12
12
  // Check if package.json exists
13
13
  if (!fs.existsSync(packageJsonPath)) {
14
- logError(chalk.red('No package.json found in the current directory. Please run this command from the root of your project.'));
14
+ logWarning(chalk.yellow('No package.json found in the current directory. Please run this command from the root of your project.'));
15
15
  return { library: 'base', additionalModules: [] };
16
16
  }
17
17
  // Read and parse package.json
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gtx-cli",
3
- "version": "2.3.9-alpha.0",
3
+ "version": "2.3.10",
4
4
  "main": "dist/index.js",
5
5
  "bin": "dist/main.js",
6
6
  "files": [