MCPcopy Index your code
hub / github.com/alibaba/lowcode-engine / resolvePkgJson

Function resolvePkgJson

modules/material-parser/src/utils.ts:107–111  ·  view source on GitHub ↗
(pkgJsonPath: string)

Source from the content-addressed store, hash-verified

105}
106
107export async function resolvePkgJson(pkgJsonPath: string): Promise<{ [k: string]: any }> {
108 const content = await loadFile(pkgJsonPath);
109 const json = JSON.parse(content);
110 return json;
111}
112
113export function loadFile(filePath: string): string {
114 const content: string | Buffer = readFileSync(filePath);

Callers 2

scanFunction · 0.90
installPeerAndDevDepsFunction · 0.85

Calls 2

loadFileFunction · 0.85
parseMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…