MCPcopy Create free account
hub / github.com/cloudflare/computer / main

Function main

packages/computerd/scripts/build-bin.mjs:64–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62];
63
64async function main() {
65 await runNpm("build");
66 await rm(outputDir, { recursive: true, force: true });
67 await mkdir(outputDir, { recursive: true });
68 await mkdir(seaWorkDir, { recursive: true });
69 await mkdir(nodeCacheDir, { recursive: true });
70
71 for (const target of targets) {
72 console.log(`[computerd-bin] building ${target.name}`);
73 await buildTarget(target);
74 }
75
76 console.log(`wrote standalone binaries to ${outputDir}`);
77}
78
79async function buildTarget(target) {
80 const bundlePath = resolve(seaWorkDir, `${target.name}.bundle.mjs`);

Callers 1

build-bin.mjsFile · 0.70

Calls 5

runNpmFunction · 0.85
buildTargetFunction · 0.85
logMethod · 0.65
rmFunction · 0.50
mkdirFunction · 0.50

Tested by

no test coverage detected