(p: string)
| 972 | } |
| 973 | |
| 974 | async function tryReadFile(p: string) { |
| 975 | try { |
| 976 | return await fs.readFile(p, "utf8"); |
| 977 | } catch { |
| 978 | return null; |
| 979 | } |
| 980 | } |
| 981 | |
| 982 | async function readPackageJson(p: string) { |
| 983 | const contents = await tryReadFile(p); |
no outgoing calls
no test coverage detected