MCPcopy
hub / github.com/colbymchenry/codegraph / mkWorkspaceRoot

Function mkWorkspaceRoot

__tests__/frontload-hook.test.ts:24–28  ·  view source on GitHub ↗

A workspace-root manifest so the down-scan gate (looksLikeProjectRoot) passes.

(dir: string)

Source from the content-addressed store, hash-verified

22}
23/** A workspace-root manifest so the down-scan gate (looksLikeProjectRoot) passes. */
24function mkWorkspaceRoot(dir: string): string {
25 fs.mkdirSync(dir, { recursive: true });
26 fs.writeFileSync(path.join(dir, 'package.json'), '{"private":true,"workspaces":["packages/*"]}');
27 return dir;
28}
29
30describe('planFrontload — front-load hook project resolution (#964)', () => {
31 let tmp: string;

Callers 1

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected