MCPcopy Create free account
hub / github.com/SethGammon/Citadel / buildIncrementalArgs

Function buildIncrementalArgs

hooks_src/post-edit.js:396–405  ·  view source on GitHub ↗

* Incremental flags when the project has a tsconfig.json. The build info cache * lives under .planning/cache/ so repeat checks stay fast.

()

Source from the content-addressed store, hash-verified

394
395 const shimName = process.platform === 'win32' ? 'tsc.cmd' : 'tsc';
396 const shim = path.join(PROJECT_ROOT, 'node_modules', '.bin', shimName);
397 if (fs.existsSync(shim)) return { cmd: shim, baseArgs: [] };
398
399 const onPath = resolveBin('tsc');
400 if (onPath) return { cmd: onPath, baseArgs: [] };
401
402 return { error: 'tsc not found (no typescript package in the project, no node_modules/.bin/tsc, not on PATH)' };
403}
404
405/**
406 * Incremental flags when the project has a tsconfig.json. The build info cache
407 * lives under .planning/cache/ so repeat checks stay fast.
408 */

Callers 1

typecheckTypeScriptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected