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

Function project

__tests__/path-alias-overlap.test.ts:28–36  ·  view source on GitHub ↗
(files: Record<string, string>)

Source from the content-addressed store, hash-verified

26});
27
28const project = (files: Record<string, string>): string => {
29 const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-alias-overlap-'));
30 dirs.push(dir);
31 for (const [rel, content] of Object.entries(files)) {
32 fs.mkdirSync(path.dirname(path.join(dir, rel)), { recursive: true });
33 fs.writeFileSync(path.join(dir, rel), content);
34 }
35 return dir;
36};
37
38const tsconfig = (paths: Record<string, string[]>): string =>
39 JSON.stringify({ compilerOptions: { baseUrl: './src', paths } });

Callers 1

Calls 2

pushMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected