gt 2.14.0 → 2.14.1

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.14.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1162](https://github.com/generaltranslation/gt/pull/1162) [`faa90dc`](https://github.com/generaltranslation/gt/commit/faa90dca8f855712f0f99cd9c9644fb2cf69524f) Thanks [@fernando-aviles](https://github.com/fernando-aviles)! - Make `git` tagging command default behavior
8
+
3
9
  ## 2.14.0
4
10
 
5
11
  ### Minor Changes
package/dist/cli/flags.js CHANGED
@@ -38,7 +38,7 @@ export function attachTranslateFlags(command) {
38
38
  .option('--disable-branch-detection', 'Disable additional branch detection and optimizations and use the manually specified branch', false)
39
39
  .option('--enable-branching', 'Enable branching for the project')
40
40
  .option('--remote-name <name>', 'Specify a custom remote name to use for branch detection', DEFAULT_GIT_REMOTE_NAME)
41
- .option('--tag <value>', 'Tag ID for this translation run (use "git" to auto-resolve from current commit)')
41
+ .option('--tag [value]', 'Tag this translation run (auto-resolves from git if no value provided)')
42
42
  .option('-m, --message <message>', 'Message to attach to the translation tag');
43
43
  return command;
44
44
  }
@@ -232,10 +232,10 @@ export async function generateSettings(flags, cwd = process.cwd()) {
232
232
  mergedOptions.tagMessage = flags.message;
233
233
  }
234
234
  // Resolve tag:
235
- // --tag git (explicit) or -m without --tag: try git SHA, fall back to random hex
235
+ // --tag (bare) or -m without --tag: try git SHA, fall back to random hex
236
236
  // --tag <value>: use as-is
237
237
  // No flags: no tag
238
- if (flags.tag === 'git' || (!flags.tag && mergedOptions.tagMessage)) {
238
+ if (flags.tag === true || (!flags.tag && mergedOptions.tagMessage)) {
239
239
  try {
240
240
  mergedOptions.tag = execSync('git rev-parse --short HEAD', {
241
241
  encoding: 'utf-8',
@@ -1 +1 @@
1
- export declare const PACKAGE_VERSION = "2.14.0";
1
+ export declare const PACKAGE_VERSION = "2.14.1";
@@ -1,2 +1,2 @@
1
1
  // This file is auto-generated. Do not edit manually.
2
- export const PACKAGE_VERSION = '2.14.0';
2
+ export const PACKAGE_VERSION = '2.14.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gt",
3
- "version": "2.14.0",
3
+ "version": "2.14.1",
4
4
  "main": "dist/index.js",
5
5
  "bin": "dist/main.js",
6
6
  "files": [
@@ -110,9 +110,9 @@
110
110
  "unified": "^11.0.5",
111
111
  "unist-util-visit": "^5.0.0",
112
112
  "yaml": "^2.8.0",
113
- "@generaltranslation/python-extractor": "0.2.4",
114
113
  "generaltranslation": "8.2.0",
115
- "gt-remark": "1.0.6"
114
+ "gt-remark": "1.0.6",
115
+ "@generaltranslation/python-extractor": "0.2.4"
116
116
  },
117
117
  "devDependencies": {
118
118
  "@babel/types": "^7.28.4",