Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions scripts/build-binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,13 @@ for target_pair in "${TARGETS[@]}"; do
IFS=':' read -r target outfile <<< "$target_pair"
echo "Building $target → $outfile"

# --bytecode excluded for Windows cross-compile (inconsistent Bun support)
BYTECODE_FLAG=""
if [[ "$target" != *windows* ]]; then
BYTECODE_FLAG="--bytecode"
fi

# Always --minify to match release parity
# --bytecode disabled: Bun 1.3.11 produces broken bytecode for our module graph
# (likely triggered by @mariozechner/pi-coding-agent's CJS/ESM interop shape) —
# "TypeError: Expected CommonJS module to have a function wrapper" at runtime.
# Always --minify to match release parity.
bun build \
--compile \
--minify \
$BYTECODE_FLAG \
--target="$target" \
--outfile="$outfile" \
packages/cli/src/cli.ts
Expand Down
Loading