Commit a1e9d42
committed
fix(benchmarks): resolve execFileAsync .cmd issue and drop dead exec import
On Windows, execFile does not use a shell and cannot resolve npm's .cmd
wrappers (e.g. claude.cmd). checkInstalled() succeeded via execSync (which
goes through cmd.exe) but runRawClaudeCode threw ENOENT, returning
setup_failed on the very platform the previous commit targeted.
Add shell: process.platform === 'win32' to the execFileAsync call so
cmd.exe is used on Windows (resolves .cmd) while POSIX keeps shell: false
(no injection risk, args are already an array).
Also removes the dead exec / execAsync imports left over from the
shell-interpolated execAsync refactor.1 parent 7685414 commit a1e9d42
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
413 | 412 | | |
414 | 413 | | |
415 | 414 | | |
416 | | - | |
| 415 | + | |
417 | 416 | | |
418 | 417 | | |
419 | 418 | | |
| |||
0 commit comments