Something went wrong. Try again.
A local-first event pipeline for independent agents, built on Jazz.
Something went wrong. Try again.
626 B · 20 lines
JavaScript
123456789101112131415161718192021import { build } from "esbuild";import fs from "node:fs/promises";import path from "node:path";
const root = process.cwd();const outputDirectory = path.join(root, "dist", "sandbox");await fs.mkdir(outputDirectory, { recursive: true });
await build({ entryPoints: [path.join(root, "src", "agents", "sandbox", "worker.ts")], outfile: path.join(outputDirectory, "worker.cjs"), bundle: true, platform: "node", format: "cjs", target: "node22", sourcemap: false, legalComments: "none", treeShaking: true, banner: { js: "// thought stream disposable model worker. Generated by pnpm build:sandbox.\n" },});