Commit c5660b8
fix(init): remove double-close of Dir handle in walkDir
for-await-of auto-closes the Dir handle on completion (including break).
The finally block was double-closing it, which throws ERR_DIR_CLOSED on
Node.js (masked by Bun which silently succeeds). Matches the existing
pattern in env-file.ts and project-root.ts.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent fc901d5 commit c5660b8
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
| 414 | + | |
414 | 415 | | |
415 | 416 | | |
416 | 417 | | |
| |||
420 | 421 | | |
421 | 422 | | |
422 | 423 | | |
423 | | - | |
424 | | - | |
425 | 424 | | |
426 | 425 | | |
427 | 426 | | |
| |||
0 commit comments