gt 2.14.14 → 2.14.15

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.15
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1213](https://github.com/generaltranslation/gt/pull/1213) [`38e21c1`](https://github.com/generaltranslation/gt/commit/38e21c10bcbd2c5b767793b9659583cf6d03c867) Thanks [@moss-bryophyta](https://github.com/moss-bryophyta)! - Fix inline content extraction for gt-tanstack-start projects. The CLI now correctly detects gt-tanstack-start in package.json, routes it to ReactCLI, and scans imports from gt-tanstack-start for translatable content like `<T>` components.
8
+
3
9
  ## 2.14.14
4
10
 
5
11
  ### Patch Changes
@@ -131,6 +131,7 @@ function fallbackToGtReact(library) {
131
131
  Libraries.GT_NEXT,
132
132
  Libraries.GT_NODE,
133
133
  Libraries.GT_REACT_NATIVE,
134
+ Libraries.GT_TANSTACK_START,
134
135
  Libraries.GT_FLASK,
135
136
  Libraries.GT_FASTAPI,
136
137
  ].includes(library)
@@ -23,6 +23,9 @@ export function determineLibrary() {
23
23
  if (dependencies[Libraries.GT_NEXT]) {
24
24
  library = Libraries.GT_NEXT;
25
25
  }
26
+ else if (dependencies[Libraries.GT_TANSTACK_START]) {
27
+ library = Libraries.GT_TANSTACK_START;
28
+ }
26
29
  else if (dependencies[Libraries.GT_REACT]) {
27
30
  library = Libraries.GT_REACT;
28
31
  }
@@ -1 +1 @@
1
- export declare const PACKAGE_VERSION = "2.14.14";
1
+ export declare const PACKAGE_VERSION = "2.14.15";
@@ -1,2 +1,2 @@
1
1
  // This file is auto-generated. Do not edit manually.
2
- export const PACKAGE_VERSION = '2.14.14';
2
+ export const PACKAGE_VERSION = '2.14.15';
package/dist/index.js CHANGED
@@ -13,7 +13,8 @@ export function main(program) {
13
13
  cli = new NextCLI(program, library, additionalModules);
14
14
  }
15
15
  else if (library === Libraries.GT_REACT ||
16
- library === Libraries.GT_REACT_NATIVE) {
16
+ library === Libraries.GT_REACT_NATIVE ||
17
+ library === Libraries.GT_TANSTACK_START) {
17
18
  cli = new ReactCLI(program, library, additionalModules);
18
19
  }
19
20
  else if (library === Libraries.GT_NODE) {
@@ -98,7 +98,7 @@ export type GenerateSourceOptions = {
98
98
  ignoreErrors: boolean;
99
99
  suppressWarnings: boolean;
100
100
  };
101
- export type Framework = typeof Libraries.GT_NEXT | typeof Libraries.GT_REACT | typeof Libraries.GT_REACT_NATIVE;
101
+ export type Framework = typeof Libraries.GT_NEXT | typeof Libraries.GT_REACT | typeof Libraries.GT_REACT_NATIVE | typeof Libraries.GT_TANSTACK_START;
102
102
  export type FrameworkObject = {
103
103
  name: 'mintlify';
104
104
  type?: undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gt",
3
- "version": "2.14.14",
3
+ "version": "2.14.15",
4
4
  "main": "dist/index.js",
5
5
  "bin": "dist/main.js",
6
6
  "files": [