hyouji 0.0.11 → 0.0.12
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/dist/index.js +12 -8
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -1278,9 +1278,8 @@ const getTargetLabel = async () => {
|
|
|
1278
1278
|
const response = await prompts(deleteLabel$1);
|
|
1279
1279
|
return [response.name];
|
|
1280
1280
|
};
|
|
1281
|
-
const execAsync = promisify(exec);
|
|
1282
1281
|
const GIT_COMMAND_TIMEOUT_MS = 5e3;
|
|
1283
|
-
class
|
|
1282
|
+
const _GitRepositoryDetector = class _GitRepositoryDetector {
|
|
1284
1283
|
/**
|
|
1285
1284
|
* Detects Git repository information from the current working directory
|
|
1286
1285
|
* @param cwd - Current working directory (defaults to process.cwd())
|
|
@@ -1365,10 +1364,13 @@ class GitRepositoryDetector {
|
|
|
1365
1364
|
*/
|
|
1366
1365
|
static async getRemoteUrl(gitRoot, remoteName) {
|
|
1367
1366
|
try {
|
|
1368
|
-
const { stdout } = await execAsync(
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1367
|
+
const { stdout } = await _GitRepositoryDetector.execAsync(
|
|
1368
|
+
`git remote get-url ${remoteName}`,
|
|
1369
|
+
{
|
|
1370
|
+
cwd: gitRoot,
|
|
1371
|
+
timeout: GIT_COMMAND_TIMEOUT_MS
|
|
1372
|
+
}
|
|
1373
|
+
);
|
|
1372
1374
|
return stdout.trim() || null;
|
|
1373
1375
|
} catch {
|
|
1374
1376
|
return null;
|
|
@@ -1439,7 +1441,7 @@ class GitRepositoryDetector {
|
|
|
1439
1441
|
*/
|
|
1440
1442
|
static async getAllRemotes(gitRoot) {
|
|
1441
1443
|
try {
|
|
1442
|
-
const { stdout } = await execAsync("git remote", {
|
|
1444
|
+
const { stdout } = await _GitRepositoryDetector.execAsync("git remote", {
|
|
1443
1445
|
cwd: gitRoot,
|
|
1444
1446
|
timeout: GIT_COMMAND_TIMEOUT_MS
|
|
1445
1447
|
});
|
|
@@ -1448,7 +1450,9 @@ class GitRepositoryDetector {
|
|
|
1448
1450
|
return [];
|
|
1449
1451
|
}
|
|
1450
1452
|
}
|
|
1451
|
-
}
|
|
1453
|
+
};
|
|
1454
|
+
_GitRepositoryDetector.execAsync = promisify(exec);
|
|
1455
|
+
let GitRepositoryDetector = _GitRepositoryDetector;
|
|
1452
1456
|
const getGitHubConfigs = async () => {
|
|
1453
1457
|
var _a, _b;
|
|
1454
1458
|
const configManager2 = new ConfigManager();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hyouji",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "Hyouji (表示) — A command-line tool for organizing and displaying GitHub labels with clarity and harmony.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": "koji <baxin1919@gmail.com>",
|
|
@@ -56,22 +56,22 @@
|
|
|
56
56
|
"node": ">=10"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@octokit/core": "^7.0.
|
|
60
|
-
"chalk": "^5.
|
|
59
|
+
"@octokit/core": "^7.0.6",
|
|
60
|
+
"chalk": "^5.6.2",
|
|
61
61
|
"js-yaml": "^4.1.0",
|
|
62
|
-
"oh-my-logo": "^0.3.
|
|
62
|
+
"oh-my-logo": "^0.3.2",
|
|
63
63
|
"prompts": "^2.4.2"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@biomejs/biome": "2.
|
|
66
|
+
"@biomejs/biome": "2.3.4",
|
|
67
67
|
"@types/js-yaml": "^4.0.9",
|
|
68
|
-
"@types/node": "^24.0
|
|
69
|
-
"@vitest/coverage-v8": "^
|
|
70
|
-
"@vitest/ui": "^
|
|
68
|
+
"@types/node": "^24.10.0",
|
|
69
|
+
"@vitest/coverage-v8": "^4.0.8",
|
|
70
|
+
"@vitest/ui": "^4.0.8",
|
|
71
71
|
"standard-version": "^9.5.0",
|
|
72
|
-
"typescript": "^5.
|
|
73
|
-
"vite": "^7.
|
|
74
|
-
"vitest": "^
|
|
72
|
+
"typescript": "^5.9.3",
|
|
73
|
+
"vite": "^7.2.2",
|
|
74
|
+
"vitest": "^4.0.8"
|
|
75
75
|
},
|
|
76
76
|
"files": [
|
|
77
77
|
"dist/**/*",
|