(pkgJsonPath: string)
| 105 | } |
| 106 | |
| 107 | export 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 | |
| 113 | export function loadFile(filePath: string): string { |
| 114 | const content: string | Buffer = readFileSync(filePath); |
no test coverage detected
searching dependent graphs…