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 +8 -0
- package/dist/fs/matchFiles.d.ts +0 -1
- package/dist/fs/matchFiles.js +0 -2
- package/dist/translation/validate.js +2 -1
- package/package.json +1 -1
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
|
package/dist/fs/matchFiles.d.ts
CHANGED
package/dist/fs/matchFiles.js
CHANGED
|
@@ -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) {
|