MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / writeLauncher

Function writeLauncher

__tests__/npm-shim.test.ts:53–58  ·  view source on GitHub ↗
(binDir: string)

Source from the content-addressed store, hash-verified

51// A fake bundle launcher that prints a marker + its args, so we can prove the
52// shim found and exec'd it (and passed args through).
53function writeLauncher(binDir: string): void {
54 fs.mkdirSync(binDir, { recursive: true });
55 const p = path.join(binDir, 'codegraph');
56 fs.writeFileSync(p, '#!/bin/sh\necho "FAKE_BUNDLE_RAN args:$*"\n');
57 fs.chmodSync(p, 0o755);
58}
59
60// A fake bundle launcher that echoes the threaded host pid, so we can prove the
61// shim passed CODEGRAPH_HOST_PPID down to the server (#1185).

Callers 1

npm-shim.test.tsFile · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected