Documentation menu
CLI

ayjnt compile

Produce one executable containing the Bun host, generated Worker, browser assets, cli.ts, and workerd.

Usage

example
ayjnt compile [options]

--cwd <path>
--outfile <path>
--target <target>       for example bun-linux-x64
--no-embed-workerd      require AYJNT_WORKERD_PATH at runtime
--bytecode              precompile embedded JavaScript
--minify                minify embedded JavaScript

Runtime contract

The resulting executable accepts --port, --data-dir, --allow-host-writes, and --allow-host-exec. Other arguments go to cli.ts.

Cross-compiling Bun does not cross-compile workerd. Build for the current platform when embedding it, or use --no-embed-workerd and provide a compatible binary.