gtx-cli 2.5.1 → 2.5.3
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 +13 -0
- package/dist/workflow/download.js +8 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# gtx-cli
|
|
2
2
|
|
|
3
|
+
## 2.5.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`f98c504`](https://github.com/generaltranslation/gt/commit/f98c504f1e025024b3e1e5e16a0271e86ed095fa)]:
|
|
8
|
+
- generaltranslation@8.0.1
|
|
9
|
+
|
|
10
|
+
## 2.5.2
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [#798](https://github.com/generaltranslation/gt/pull/798) [`cf475e4`](https://github.com/generaltranslation/gt/commit/cf475e4db92199cf61f9179b7d678ed3aa116c98) Thanks [@brian-lou](https://github.com/brian-lou)! - Test OIDC
|
|
15
|
+
|
|
3
16
|
## 2.5.1
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -3,8 +3,9 @@ import { gt } from '../utils/gt.js';
|
|
|
3
3
|
import { clearLocaleDirs } from '../fs/clearLocaleDirs.js';
|
|
4
4
|
import { PollTranslationJobsStep } from './PollJobsStep.js';
|
|
5
5
|
import { DownloadTranslationsStep } from './DownloadStep.js';
|
|
6
|
-
import { logErrorAndExit } from '../console/logging.js';
|
|
6
|
+
import { logError, logErrorAndExit } from '../console/logging.js';
|
|
7
7
|
import { BranchStep } from './BranchStep.js';
|
|
8
|
+
import chalk from 'chalk';
|
|
8
9
|
/**
|
|
9
10
|
* Checks the status of translations and downloads them using a workflow pattern
|
|
10
11
|
* @param fileVersionData - Mapping of file IDs to their version and name information
|
|
@@ -64,6 +65,12 @@ export async function downloadTranslations(fileVersionData, jobData, branchData,
|
|
|
64
65
|
forceRetranslation,
|
|
65
66
|
});
|
|
66
67
|
await pollStep.wait();
|
|
68
|
+
if (pollResult.fileTracker.failed.size > 0) {
|
|
69
|
+
logError(`${chalk.red(`${pollResult.fileTracker.failed.size} file(s) failed to translate:`)}\n${Array.from(pollResult.fileTracker.failed.entries())
|
|
70
|
+
.map(([key, value]) => `- ${value.fileName}`)
|
|
71
|
+
.join('\n')}`);
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
67
74
|
if (!pollResult.success) {
|
|
68
75
|
return false;
|
|
69
76
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gtx-cli",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.3",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"bin": "dist/main.js",
|
|
6
6
|
"files": [
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"unified": "^11.0.5",
|
|
94
94
|
"unist-util-visit": "^5.0.0",
|
|
95
95
|
"yaml": "^2.8.0",
|
|
96
|
-
"generaltranslation": "8.0.
|
|
96
|
+
"generaltranslation": "8.0.1"
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|
|
99
99
|
"@babel/types": "^7.28.4",
|