gtx-cli 2.0.2 → 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,19 @@
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
+
11
+ ## 2.0.3
12
+
13
+ ### Patch Changes
14
+
15
+ - [#462](https://github.com/generaltranslation/gt/pull/462) [`678e9e7`](https://github.com/generaltranslation/gt/commit/678e9e70dd57a38ee10dcf9deb78cdd5dcfb759b) Thanks [@brian-lou](https://github.com/brian-lou)! - Revert adding version to cli tool
16
+
3
17
  ## 2.0.2
4
18
 
5
19
  ### Patch Changes
package/dist/cli/base.js CHANGED
@@ -14,7 +14,6 @@ import { installPackage } from '../utils/installPackage.js';
14
14
  import { getPackageManager } from '../utils/packageManager.js';
15
15
  import { retrieveCredentials, setCredentials } from '../utils/credentials.js';
16
16
  import { areCredentialsSet } from '../utils/credentials.js';
17
- import { getCLIVersion } from '../utils/packageJson.js';
18
17
  export class BaseCLI {
19
18
  library;
20
19
  additionalModules;
@@ -22,7 +21,6 @@ export class BaseCLI {
22
21
  // Constructor is shared amongst all CLI class types
23
22
  constructor(program, library, additionalModules) {
24
23
  this.program = program;
25
- this.program.version(getCLIVersion());
26
24
  this.library = library;
27
25
  this.additionalModules = additionalModules || [];
28
26
  this.setupInitCommand();
@@ -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.2",
3
+ "version": "2.0.4",
4
4
  "main": "dist/index.js",
5
5
  "bin": "dist/main.js",
6
6
  "files": [