fenge 0.12.11 → 0.13.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/package.json +11 -12
- package/src/utils.js +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fenge",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"description": "A CLI tool for code quality",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -43,21 +43,20 @@
|
|
|
43
43
|
"tsconfig"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"commander": "
|
|
46
|
+
"commander": "14.0.3",
|
|
47
47
|
"eslint": "9.22.0",
|
|
48
48
|
"lilconfig": "3.1.3",
|
|
49
|
-
"lint-staged": "
|
|
50
|
-
"ora": "
|
|
51
|
-
"prettier": "3.
|
|
49
|
+
"lint-staged": "16.4.0",
|
|
50
|
+
"ora": "9.3.0",
|
|
51
|
+
"prettier": "3.8.1",
|
|
52
52
|
"pretty-ms": "9.3.0",
|
|
53
|
-
"
|
|
54
|
-
"@fenge/
|
|
55
|
-
"
|
|
56
|
-
"@fenge/
|
|
57
|
-
"prettier-ignore": "0.4.0"
|
|
53
|
+
"@fenge/prettier-config": "0.4.0",
|
|
54
|
+
"@fenge/tsconfig": "0.11.0",
|
|
55
|
+
"prettier-ignore": "0.5.0",
|
|
56
|
+
"@fenge/eslint-config": "0.8.1"
|
|
58
57
|
},
|
|
59
58
|
"devDependencies": {
|
|
60
|
-
"@types/node": "
|
|
59
|
+
"@types/node": "20.19.37"
|
|
61
60
|
},
|
|
62
61
|
"peerDependencies": {
|
|
63
62
|
"typescript": "^5.7.0"
|
|
@@ -68,7 +67,7 @@
|
|
|
68
67
|
}
|
|
69
68
|
},
|
|
70
69
|
"engines": {
|
|
71
|
-
"node": "
|
|
70
|
+
"node": ">=20.19.0"
|
|
72
71
|
},
|
|
73
72
|
"scripts": {
|
|
74
73
|
"test": "tsc --noEmit && node --test"
|
package/src/utils.js
CHANGED
|
@@ -7,10 +7,10 @@ import os from "node:os";
|
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import process from "node:process";
|
|
9
9
|
import { fileURLToPath } from "node:url";
|
|
10
|
+
import { styleText } from "node:util";
|
|
10
11
|
import { lilconfig } from "lilconfig";
|
|
11
12
|
import ora from "ora";
|
|
12
13
|
import prettyMs from "pretty-ms";
|
|
13
|
-
import colors from "yoctocolors";
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* @returns {Promise<{name: string, version: string}>}
|
|
@@ -73,7 +73,7 @@ export function spin(func, topic) {
|
|
|
73
73
|
return result;
|
|
74
74
|
} finally {
|
|
75
75
|
spinner[succeedOrFail](
|
|
76
|
-
`${topic} ${succeedOrFail} in ${
|
|
76
|
+
`${topic} ${succeedOrFail} in ${styleText("yellow", prettyMs(Date.now() - startTime))}`,
|
|
77
77
|
);
|
|
78
78
|
}
|
|
79
79
|
};
|
|
@@ -92,7 +92,7 @@ function execCmd(command, { dryRun, env }) {
|
|
|
92
92
|
if (dryRun) {
|
|
93
93
|
return Promise.resolve({
|
|
94
94
|
code: 0,
|
|
95
|
-
stdout: `${
|
|
95
|
+
stdout: `${styleText("green", cmd)} ${args.join(" ")};\n`,
|
|
96
96
|
stderr: "",
|
|
97
97
|
});
|
|
98
98
|
}
|