gt 2.13.2 → 2.13.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
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# gtx-cli
|
|
2
2
|
|
|
3
|
+
## 2.13.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1156](https://github.com/generaltranslation/gt/pull/1156) [`0606939`](https://github.com/generaltranslation/gt/commit/0606939da3b78c7423688fd8ee5cbb6af035c193) Thanks [@fernando-aviles](https://github.com/fernando-aviles)! - Add branch ID to lockfile during staging
|
|
8
|
+
|
|
3
9
|
## 2.13.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -36,7 +36,7 @@ export async function handleStage(options, settings, library, stage) {
|
|
|
36
36
|
versionId: data.versionId,
|
|
37
37
|
fileName: data.fileName,
|
|
38
38
|
}));
|
|
39
|
-
writeStagedEntries(settings, stagedFiles);
|
|
39
|
+
writeStagedEntries(settings, stagedFiles, branchData.currentBranch.id);
|
|
40
40
|
}
|
|
41
41
|
const templateData = allFiles.find((file) => file.fileId === TEMPLATE_FILE_ID);
|
|
42
42
|
if (templateData?.versionId) {
|
|
@@ -67,7 +67,7 @@ export declare function writeStagedEntries(settings: Settings, stagedFiles: {
|
|
|
67
67
|
fileId: string;
|
|
68
68
|
versionId: string;
|
|
69
69
|
fileName: string;
|
|
70
|
-
}[]): void;
|
|
70
|
+
}[], branchId?: string): void;
|
|
71
71
|
/**
|
|
72
72
|
* Reads staged entries from the lockfile.
|
|
73
73
|
* Returns the same shape as FileTranslationData for compatibility
|
|
@@ -171,8 +171,11 @@ export function findOrCreateEntry(entryMap, entries, fileId, versionId) {
|
|
|
171
171
|
* Writes staged file entries into the lockfile.
|
|
172
172
|
* Each entry is marked with `staged: true` and empty translations.
|
|
173
173
|
*/
|
|
174
|
-
export function writeStagedEntries(settings, stagedFiles) {
|
|
174
|
+
export function writeStagedEntries(settings, stagedFiles, branchId) {
|
|
175
175
|
const { data, entryMap, originalV1 } = readLockfile(settings);
|
|
176
|
+
if (branchId) {
|
|
177
|
+
data.branchId = branchId;
|
|
178
|
+
}
|
|
176
179
|
for (const file of stagedFiles) {
|
|
177
180
|
const entry = findOrCreateEntry(entryMap, data.entries, file.fileId, file.versionId);
|
|
178
181
|
entry.fileName = file.fileName;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PACKAGE_VERSION = "2.13.
|
|
1
|
+
export declare const PACKAGE_VERSION = "2.13.3";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// This file is auto-generated. Do not edit manually.
|
|
2
|
-
export const PACKAGE_VERSION = '2.13.
|
|
2
|
+
export const PACKAGE_VERSION = '2.13.3';
|