gtx-cli 2.0.3 → 2.0.4

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,13 @@
1
1
  # gtx-cli
2
2
 
3
+ ## 2.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#464](https://github.com/generaltranslation/gt/pull/464) [`a10331c`](https://github.com/generaltranslation/gt/commit/a10331c6854d60f3328d4ce6c307acc0c28e8ef4) Thanks [@brian-lou](https://github.com/brian-lou)! - Add success message for validate
8
+
9
+ - [#464](https://github.com/generaltranslation/gt/pull/464) [`a10331c`](https://github.com/generaltranslation/gt/commit/a10331c6854d60f3328d4ce6c307acc0c28e8ef4) Thanks [@brian-lou](https://github.com/brian-lou)! - Fix glob pattern for validate files
10
+
3
11
  ## 2.0.3
4
12
 
5
13
  ### Patch Changes
@@ -1,2 +1 @@
1
- export declare const IGNORED_PATTERNS: string[];
2
1
  export declare function matchFiles(cwd: string, patterns: string[]): string[];
@@ -1,10 +1,8 @@
1
1
  import fg from 'fast-glob';
2
- export const IGNORED_PATTERNS = ['**/.*', '**/.*/**'];
3
2
  export function matchFiles(cwd, patterns) {
4
3
  return fg.sync(patterns, {
5
4
  cwd,
6
5
  absolute: true,
7
6
  onlyFiles: true,
8
- ignore: IGNORED_PATTERNS,
9
7
  });
10
8
  }
@@ -7,13 +7,14 @@ import { createInlineUpdates } from '../react/parse/createInlineUpdates.js';
7
7
  export async function validateProject(settings, pkg, files) {
8
8
  if (files && files.length > 0) {
9
9
  // Validate specific files using createInlineUpdates
10
- const { errors } = await createInlineUpdates(pkg, true, files);
10
+ const { errors, updates } = await createInlineUpdates(pkg, true, files);
11
11
  if (errors.length > 0) {
12
12
  logErrorAndExit(chalk.red(`Error: CLI tool encountered ${errors.length} syntax errors:\n` +
13
13
  errors
14
14
  .map((error) => chalk.red('• ') + chalk.white(error) + '\n')
15
15
  .join('')));
16
16
  }
17
+ logSuccess(chalk.green(`Success! Found ${updates.length} translatable entries.`));
17
18
  return;
18
19
  }
19
20
  if (!settings.dictionary) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gtx-cli",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "main": "dist/index.js",
5
5
  "bin": "dist/main.js",
6
6
  "files": [