summaryrefslogtreecommitdiffhomepage
path: root/bin/build
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-06-27 01:12:40 +0900
committerAdam Malczewski <[email protected]>2026-06-27 01:12:40 +0900
commit98b0638838a8e754927d8c030ce8bded18d63e7d (patch)
tree0d4e21c3d4792fcd77e1040373b260e38efa34ce /bin/build
parentd92a4af6191d7d20acf861adf605ad0227b6b287 (diff)
parent61e45e60d699ed1ca46f94a8f181c92a940317c6 (diff)
downloaddispatch-98b0638838a8e754927d8c030ce8bded18d63e7d.tar.gz
dispatch-98b0638838a8e754927d8c030ce8bded18d63e7d.zip
Merge branch 'dev' into feature/heartbeat
# Conflicts: # packages/host-bin/package.json # packages/host-bin/src/main.ts # packages/session-orchestrator/src/orchestrator.ts # packages/system-prompt/src/service.test.ts # packages/system-prompt/src/service.ts # packages/system-prompt/src/types.ts # packages/transport-contract/package.json # packages/transport-http/package.json # packages/transport-http/src/app.test.ts # packages/transport-http/src/app.ts # packages/transport-http/src/extension.ts # packages/transport-http/tsconfig.json # tsconfig.json
Diffstat (limited to 'bin/build')
-rwxr-xr-xbin/build8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/build b/bin/build
index 0517af5..c410156 100755
--- a/bin/build
+++ b/bin/build
@@ -24,6 +24,14 @@ if [[ "${1:-}" == "--no-frontend" ]]; then
BUILD_FRONTEND=0
fi
+# Recompile all TypeScript packages (composite project references) so the
+# dist/*.js files are up to date with the .ts source. The packages' package.json
+# `main` fields point to dist/index.js, so bun build --compile reads the compiled
+# JavaScript — without this step, source edits are silently lost in the binary.
+echo "[build] tsc --build (recompile packages from source)"
+cd "$BACKEND"
+bunx tsc --build 2>&1 | tail -5
+
echo "[build] backend binary → dist/dispatch-server"
mkdir -p "$ROOT/dist"
bun build --compile "$BACKEND/packages/host-bin/src/main.ts" \