// Bundles the shared ui/src/lib game-image renderer (see src/entry.ts) into
// dist/gameimage.mjs for the sidecar runtime. Uses the esbuild JS API — the CLI shim is
// unreliable under pnpm's bin wrapper (it re-runs the native binary through node).
import { build } from 'esbuild';

await build({
  entryPoints: ['src/entry.ts'],
  bundle: true,
  format: 'esm',
  platform: 'node',
  outfile: 'dist/gameimage.mjs',
  logLevel: 'info',
});
