gtx-cli 2.21.5 → 2.22.0
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 +9 -0
- package/dist/bin/bin-entry.js +2 -10
- package/dist/bin/bin-entry.js.map +1 -1
- package/dist/main.js +2 -10
- package/dist/main.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# gtx-cli
|
|
2
2
|
|
|
3
|
+
## 2.22.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2205](https://github.com/generaltranslation/gt/pull/2205) [`200a14e`](https://github.com/generaltranslation/gt/commit/200a14e66fd83d4d6c47043223d618e6fc47a2b1) Thanks [@chenxin-yan](https://github.com/chenxin-yan)! - Keep dotenv startup warnings on stderr so API-key creation prints only the new key to stdout.
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`5382de5`](https://github.com/generaltranslation/gt/commit/5382de503a626beb394e01cad92882b78c2a0aa8), [`87fa5b1`](https://github.com/generaltranslation/gt/commit/87fa5b17cc2dcd265bc96ab77259e4bc4a6c987f), [`78e3a57`](https://github.com/generaltranslation/gt/commit/78e3a57c19caffe8fbce2e9bc74e573071d662e8), [`370c31f`](https://github.com/generaltranslation/gt/commit/370c31f975cd1d2bfa9609ea1827c2900f812665), [`c734b08`](https://github.com/generaltranslation/gt/commit/c734b084f0a50d1b2787c86ec790403f88803650), [`f6d1bae`](https://github.com/generaltranslation/gt/commit/f6d1bae8489ef37377bd45ec27f60e05e1f152d3), [`052d499`](https://github.com/generaltranslation/gt/commit/052d499556f3dcf7c6801d2ba91399783608e70b), [`08e6d82`](https://github.com/generaltranslation/gt/commit/08e6d82df8f02045f43bfcc87b35e9a4ae4a9f69), [`abc7fea`](https://github.com/generaltranslation/gt/commit/abc7feaeb8be41709178d34db550d7af36c809af)]:
|
|
10
|
+
- gt@2.22.0
|
|
11
|
+
|
|
3
12
|
## 2.21.5
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/bin/bin-entry.js
CHANGED
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
import { main } from "gt";
|
|
2
|
-
import
|
|
2
|
+
import { loadEnv } from "gt/utils/loadEnv";
|
|
3
3
|
import { program } from "commander";
|
|
4
4
|
//#region src/bin/bin-entry.ts
|
|
5
|
-
|
|
6
|
-
dotenv.config({
|
|
7
|
-
path: ".env.local",
|
|
8
|
-
override: true
|
|
9
|
-
});
|
|
10
|
-
dotenv.config({
|
|
11
|
-
path: ".env.production",
|
|
12
|
-
override: true
|
|
13
|
-
});
|
|
5
|
+
loadEnv();
|
|
14
6
|
main(program);
|
|
15
7
|
program.name("gtx-cli");
|
|
16
8
|
program.parse();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bin-entry.js","names":[],"sources":["../../src/bin/bin-entry.ts"],"sourcesContent":["// Entry point for binaries\n\nimport { main } from 'gt';\nimport
|
|
1
|
+
{"version":3,"file":"bin-entry.js","names":[],"sources":["../../src/bin/bin-entry.ts"],"sourcesContent":["// Entry point for binaries\n\nimport { main } from 'gt';\nimport { loadEnv } from 'gt/utils/loadEnv';\nimport { program } from 'commander';\n\nloadEnv();\n\nmain(program);\nprogram.name('gtx-cli');\nprogram.parse();\n"],"mappings":";;;;AAMA,SAAS;AAET,KAAK,QAAQ;AACb,QAAQ,KAAK,UAAU;AACvB,QAAQ,OAAO"}
|
package/dist/main.js
CHANGED
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { main } from "gt";
|
|
3
|
-
import
|
|
3
|
+
import { loadEnv } from "gt/utils/loadEnv";
|
|
4
4
|
import { program } from "commander";
|
|
5
5
|
//#region src/main.ts
|
|
6
|
-
|
|
7
|
-
dotenv.config({
|
|
8
|
-
path: ".env.local",
|
|
9
|
-
override: true
|
|
10
|
-
});
|
|
11
|
-
dotenv.config({
|
|
12
|
-
path: ".env.production",
|
|
13
|
-
override: true
|
|
14
|
-
});
|
|
6
|
+
loadEnv();
|
|
15
7
|
main(program);
|
|
16
8
|
program.name("gtx-cli");
|
|
17
9
|
program.parse();
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","names":[],"sources":["../src/main.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { main } from 'gt';\nimport
|
|
1
|
+
{"version":3,"file":"main.js","names":[],"sources":["../src/main.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { main } from 'gt';\nimport { loadEnv } from 'gt/utils/loadEnv';\nimport { program } from 'commander';\n\nloadEnv();\n\nmain(program);\nprogram.name('gtx-cli');\nprogram.parse();\n"],"mappings":";;;;;AAMA,SAAS;AAET,KAAK,QAAQ;AACb,QAAQ,KAAK,UAAU;AACvB,QAAQ,OAAO"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gtx-cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.22.0",
|
|
4
4
|
"description": "CLI tool for AI-powered i18n (wrapper for gt)",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": "bin/main.js",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"commander": "^12.1.0",
|
|
44
44
|
"dotenv": "^16.4.5",
|
|
45
|
-
"gt": "2.
|
|
45
|
+
"gt": "2.22.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/node": "^22.13.5",
|