build: fix typescript 6 compatibility

This commit is contained in:
Jarrod Watts
2026-04-04 14:44:17 +11:00
parent 2959f23456
commit 9cfaf7bf7d
2 changed files with 3 additions and 2 deletions

View File

@@ -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 {

View File

@@ -3,6 +3,7 @@
"target": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"types": ["node"],
"outDir": "./dist",
"rootDir": "./src",
"strict": true,