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

Function write

__tests__/global-setup-dist.test.ts:9–12  ·  view source on GitHub ↗
(file: string, content = file)

Source from the content-addressed store, hash-verified

7let root: string;
8let builds: string[];
9function write(file: string, content = file): void {
10 fs.mkdirSync(path.dirname(path.join(root, file)), { recursive: true });
11 fs.writeFileSync(path.join(root, file), content);
12}
13const engineOutputs = ['dist/bin/codegraph.js', 'dist/db/schema.sql',
14 'dist/extraction/wasm/typescript.wasm', 'dist/resolution/resolve-worker.js'];
15const viewerOutputs = ['dist/viewer/index.html', 'dist/viewer/assets/app.js', 'dist/viewer/assets/app.css'];

Callers 2

buildFunction · 0.70

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected