gtx-cli 1.2.25 → 1.2.26

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,11 @@
1
1
  # gtx-cli
2
2
 
3
+ ## 1.2.26
4
+
5
+ ### Patch Changes
6
+
7
+ - [#391](https://github.com/generaltranslation/gt/pull/391) [`dd41343`](https://github.com/generaltranslation/gt/commit/dd413435742930d995c9fdb84368a91381da3d65) Thanks [@brian-lou](https://github.com/brian-lou)! - Improve logs for cli; Improve QOL setup for locadex
8
+
3
9
  ## 1.2.25
4
10
 
5
11
  ### Patch Changes
@@ -29,13 +29,13 @@ export async function stageProject(settings, pkg) {
29
29
  const { updates, errors } = await createUpdates(settings, settings.dictionary, pkg);
30
30
  if (errors.length > 0) {
31
31
  if (settings.ignoreErrors) {
32
- logWarning(chalk.yellow(`Warning: CLI tool encountered syntax errors while scanning for translatable content. These components will not be translated.\n` +
32
+ logWarning(chalk.yellow(`Warning: CLI tool encountered ${errors.length} syntax errors while scanning for translatable content. These components will not be translated.\n` +
33
33
  errors
34
34
  .map((error) => chalk.yellow('• ') + chalk.white(error) + '\n')
35
35
  .join('')));
36
36
  }
37
37
  else {
38
- logErrorAndExit(chalk.red(`Error: CLI tool encountered syntax errors while scanning for translatable content. ${chalk.dim('To ignore these errors, re-run with --ignore-errors')}\n` +
38
+ logErrorAndExit(chalk.red(`Error: CLI tool encountered ${errors.length} syntax errors while scanning for translatable content. ${chalk.dim('To ignore these errors, re-run with --ignore-errors')}\n` +
39
39
  errors
40
40
  .map((error) => chalk.red('• ') + chalk.white(error) + '\n')
41
41
  .join('')));
@@ -16,7 +16,7 @@ export async function validateProject(settings, pkg) {
16
16
  }
17
17
  const { updates, errors } = await createUpdates(settings, settings.dictionary, pkg);
18
18
  if (errors.length > 0) {
19
- logErrorAndExit(chalk.red(`Error: CLI tool encountered syntax errors while scanning for translatable content.\n` +
19
+ logErrorAndExit(chalk.red(`Error: CLI tool encountered ${errors.length} syntax errors while scanning for translatable content.\n` +
20
20
  errors
21
21
  .map((error) => chalk.red('• ') + chalk.white(error) + '\n')
22
22
  .join('')));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gtx-cli",
3
- "version": "1.2.25",
3
+ "version": "1.2.26",
4
4
  "main": "dist/index.js",
5
5
  "bin": "dist/main.js",
6
6
  "files": [