10LOC

#cross-platform

Bunintermediate

Bun.$ shell scripting for cross-platform build scripts

import { $ } from "bun";

await $`rm -rf dist`;
await $`mkdir dist`;

Bun's $ template literal runs a small bash-like shell with no /bin/sh dependency, so build scripts behave identically on Windows, macOS, and Linux.