mirror of
https://github.com/oven-sh/bun
synced 2026-02-14 12:51:54 +00:00
Add internal/which.ts that uses Bun.which when running on Bun, and falls back to spawning the `which` command on other runtimes like Node.js. This enables projects to work in both environments without spawning unnecessary processes when Bun's native which is available.