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

Function readTsconfigLike

src/resolution/path-aliases.ts:113–122  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

111}
112
113function readTsconfigLike(filePath: string): RawTsconfig | null {
114 try {
115 const raw = fs.readFileSync(filePath, 'utf-8');
116 const parsed = JSON.parse(stripJsonc(raw)) as RawTsconfig;
117 return parsed && typeof parsed === 'object' ? parsed : null;
118 } catch (err) {
119 logDebug('path-aliases: failed to parse', { filePath, err: String(err) });
120 return null;
121 }
122}
123
124function splitWildcard(pattern: string): {
125 prefix: string;

Callers 1

loadProjectAliasesFunction · 0.85

Calls 2

logDebugFunction · 0.90
stripJsoncFunction · 0.85

Tested by

no test coverage detected