MCPcopy Index your code
hub / github.com/subquery/subql / loadTsConfig

Function loadTsConfig

packages/cli/src/controller/build-controller.ts:87–95  ·  view source on GitHub ↗
(projectDir: string)

Source from the content-addressed store, hash-verified

85};
86
87export function loadTsConfig(projectDir: string): any {
88 const tsconfigPath = path.join(projectDir, 'tsconfig.json');
89 if (existsSync(tsconfigPath)) {
90 const tsconfig = readFileSync(tsconfigPath, 'utf-8');
91 const tsconfigJson = parse(tsconfig);
92
93 return tsconfigJson;
94 }
95}
96
97export async function runBundle(
98 buildEntries: Record<string, string>,

Callers 1

runBundleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected