inquirerer 4.9.3 → 4.9.5
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/esm/resolvers/git.js +2 -2
- package/package.json +16 -18
- package/resolvers/git.js +1 -1
package/esm/resolvers/git.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { execFileSync } from 'child_process';
|
|
2
2
|
/**
|
|
3
3
|
* Retrieves a git config value.
|
|
4
4
|
* @param key The git config key (e.g., 'user.name', 'user.email')
|
|
@@ -6,7 +6,7 @@ import { execSync } from 'child_process';
|
|
|
6
6
|
*/
|
|
7
7
|
export function getGitConfig(key) {
|
|
8
8
|
try {
|
|
9
|
-
const result =
|
|
9
|
+
const result = execFileSync('git', ['config', '--global', '--', key], {
|
|
10
10
|
encoding: 'utf8',
|
|
11
11
|
stdio: ['pipe', 'pipe', 'ignore'] // Suppress stderr
|
|
12
12
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "inquirerer",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.5",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "TypeScript-first library for building beautiful CLI interfaces with interactive prompts",
|
|
6
6
|
"main": "index.js",
|
|
@@ -19,10 +19,22 @@
|
|
|
19
19
|
"bugs": {
|
|
20
20
|
"url": "https://github.com/constructive-io/dev-utils/issues"
|
|
21
21
|
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"deepmerge": "^4.3.1",
|
|
24
|
+
"minimist": "^1.2.8",
|
|
25
|
+
"find-and-require-package-json": "0.9.2",
|
|
26
|
+
"yanse": "0.2.3"
|
|
27
|
+
},
|
|
28
|
+
"keywords": [],
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@types/minimist": "^1.2.5",
|
|
31
|
+
"makage": "0.1.10",
|
|
32
|
+
"string-width": "4.2.3",
|
|
33
|
+
"clean-ansi": "0.2.3"
|
|
34
|
+
},
|
|
22
35
|
"scripts": {
|
|
23
36
|
"copy": "makage assets",
|
|
24
37
|
"clean": "makage clean",
|
|
25
|
-
"prepublishOnly": "npm run build",
|
|
26
38
|
"build": "makage build",
|
|
27
39
|
"dev": "ts-node dev/index",
|
|
28
40
|
"dev:spinner": "ts-node dev/demo-spinner",
|
|
@@ -32,19 +44,5 @@
|
|
|
32
44
|
"dev:ai-code": "ts-node dev/demo-ai-code",
|
|
33
45
|
"test": "jest",
|
|
34
46
|
"test:watch": "jest --watch"
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
"deepmerge": "^4.3.1",
|
|
38
|
-
"find-and-require-package-json": "0.9.1",
|
|
39
|
-
"minimist": "^1.2.8",
|
|
40
|
-
"yanse": "0.2.2"
|
|
41
|
-
},
|
|
42
|
-
"keywords": [],
|
|
43
|
-
"devDependencies": {
|
|
44
|
-
"@types/minimist": "^1.2.5",
|
|
45
|
-
"clean-ansi": "0.2.2",
|
|
46
|
-
"makage": "0.1.10",
|
|
47
|
-
"string-width": "4.2.3"
|
|
48
|
-
},
|
|
49
|
-
"gitHead": "4a180cf21a2c86ce630eabfc3739d0cd6a608e7a"
|
|
50
|
-
}
|
|
47
|
+
}
|
|
48
|
+
}
|
package/resolvers/git.js
CHANGED
|
@@ -10,7 +10,7 @@ const child_process_1 = require("child_process");
|
|
|
10
10
|
*/
|
|
11
11
|
function getGitConfig(key) {
|
|
12
12
|
try {
|
|
13
|
-
const result = (0, child_process_1.
|
|
13
|
+
const result = (0, child_process_1.execFileSync)('git', ['config', '--global', '--', key], {
|
|
14
14
|
encoding: 'utf8',
|
|
15
15
|
stdio: ['pipe', 'pipe', 'ignore'] // Suppress stderr
|
|
16
16
|
});
|