The unchanged Bun corpus file packages/runtime/test/bun-corpus/bundler/cli.test.ts now advances past the JSX warning case and fails the test "generating a standalone binary in nested path, issue #4195".
Current behavior:
- Bun.spawn invokes Home with build, the trivial JS fixture, --compile, and --outfile pointing at a not-yet-created nested directory.
- The first compile exits 1 instead of 0.
Required parity:
- Create every missing parent directory for an absolute outfile such as <tmp>/bun-build-outfile-*/index.exe.
- Also handle deeper output paths such as <tmp>/bun-build-outfile2-*/b/u/n/index.exe.
- Emit a runnable standalone executable at the exact requested path.
- Running each executable must produce no stderr and exit 0.
- Keep the unchanged upstream workloads and assertions; do not emulate success in the test adapter.
Acceptance:
- The unchanged packages/runtime/test/bun-corpus/bundler/cli.test.ts nested-path test passes for both output shapes.
- Neighboring build CLI cases remain green.