(directory: string)
| 3 | import { readJSONFile } from "./fileSystem"; |
| 4 | |
| 5 | export async function readPackageJson(directory: string): Promise<PackageJson | undefined> { |
| 6 | const packageJsonPath = pathModule.join(directory, "package.json"); |
| 7 | return readJSONFile(packageJsonPath) |
| 8 | .then((f) => f as PackageJson) |
| 9 | .catch(() => undefined); |
| 10 | } |
no test coverage detected
searching dependent graphs…