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')
|
const pathExt = (process.env.PATHEXT || '.COM;.EXE;.BAT;.CMD')
|
||||||
.split(';')
|
.split(';')
|
||||||
.map((value) => value.trim())
|
.map((value: string) => value.trim())
|
||||||
.filter(Boolean);
|
.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 {
|
function resolveClaudeBinaryFromPath(): ClaudeBinaryInfo | null {
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
"target": "ES2022",
|
"target": "ES2022",
|
||||||
"module": "NodeNext",
|
"module": "NodeNext",
|
||||||
"moduleResolution": "NodeNext",
|
"moduleResolution": "NodeNext",
|
||||||
|
"types": ["node"],
|
||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
"rootDir": "./src",
|
"rootDir": "./src",
|
||||||
"strict": true,
|
"strict": true,
|
||||||
|
|||||||
Reference in New Issue
Block a user