gtx-cli 1.2.28 → 1.2.29
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 +6 -0
- package/dist/hooks/postProcess.js +6 -6
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# gtx-cli
|
|
2
2
|
|
|
3
|
+
## 1.2.29
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#400](https://github.com/generaltranslation/gt/pull/400) [`cf9c724`](https://github.com/generaltranslation/gt/commit/cf9c72488f74db5ccd7c4dca2650d75e3484d1f2) Thanks [@brian-lou](https://github.com/brian-lou)! - Reorder linter detection preference
|
|
8
|
+
|
|
3
9
|
## 1.2.28
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -9,6 +9,12 @@ export async function detectFormatter() {
|
|
|
9
9
|
return 'prettier';
|
|
10
10
|
}
|
|
11
11
|
catch { }
|
|
12
|
+
// Try ESLint
|
|
13
|
+
try {
|
|
14
|
+
await import('eslint');
|
|
15
|
+
return 'eslint';
|
|
16
|
+
}
|
|
17
|
+
catch { }
|
|
12
18
|
// Try Biome
|
|
13
19
|
try {
|
|
14
20
|
return await new Promise((resolve, reject) => {
|
|
@@ -29,12 +35,6 @@ export async function detectFormatter() {
|
|
|
29
35
|
});
|
|
30
36
|
}
|
|
31
37
|
catch { }
|
|
32
|
-
// Try ESLint
|
|
33
|
-
try {
|
|
34
|
-
await import('eslint');
|
|
35
|
-
return 'eslint';
|
|
36
|
-
}
|
|
37
|
-
catch { }
|
|
38
38
|
return null;
|
|
39
39
|
}
|
|
40
40
|
export async function formatFiles(filesUpdated, formatter) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gtx-cli",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.29",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"bin": "dist/main.js",
|
|
6
6
|
"files": [
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"tsconfig-paths": "^4.2.0"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
96
|
-
"@biomejs/biome": "1.9.4",
|
|
96
|
+
"@biomejs/biome": "^1.9.4",
|
|
97
97
|
"@types/babel__generator": "^7.27.0",
|
|
98
98
|
"@types/babel__traverse": "^7.20.6",
|
|
99
99
|
"@types/figlet": "^1.7.0",
|