mirror of
https://github.com/jarrodwatts/claude-hud.git
synced 2026-04-16 06:32:39 +00:00
build: fix typescript 6 compatibility
This commit is contained in:
@@ -148,10 +148,10 @@ function getPathCandidates(command: string): string[] {
|
||||
|
||||
const pathExt = (process.env.PATHEXT || '.COM;.EXE;.BAT;.CMD')
|
||||
.split(';')
|
||||
.map((value) => value.trim())
|
||||
.map((value: string) => value.trim())
|
||||
.filter(Boolean);
|
||||
|
||||
return [command, ...pathExt.map((suffix) => `${command}${suffix.toLowerCase()}`), ...pathExt.map((suffix) => `${command}${suffix.toUpperCase()}`)];
|
||||
return [command, ...pathExt.map((suffix: string) => `${command}${suffix.toLowerCase()}`), ...pathExt.map((suffix: string) => `${command}${suffix.toUpperCase()}`)];
|
||||
}
|
||||
|
||||
function resolveClaudeBinaryFromPath(): ClaudeBinaryInfo | null {
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
"target": "ES2022",
|
||||
"module": "NodeNext",
|
||||
"moduleResolution": "NodeNext",
|
||||
"types": ["node"],
|
||||
"outDir": "./dist",
|
||||
"rootDir": "./src",
|
||||
"strict": true,
|
||||
|
||||
Reference in New Issue
Block a user