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

Function write

__tests__/cli-definition-grouping.test.ts:36–40  ·  view source on GitHub ↗
(file: string, source: string)

Source from the content-addressed store, hash-verified

34}
35
36function write(file: string, source: string) {
37 const absolute = path.join(projectRoot, file);
38 fs.mkdirSync(path.dirname(absolute), { recursive: true });
39 fs.writeFileSync(absolute, source);
40}
41
42beforeAll(async () => {
43 projectRoot = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-cli-1512-'));

Callers 1

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected