({ cwd, stopAt }: { cwd?: string; stopAt?: string } = {})
| 27 | * * Stop at the home dir, to avoid looking too deeply |
| 28 | */ |
| 29 | export function getPackageJson({ cwd, stopAt }: { cwd?: string; stopAt?: string } = {}): PackageJson | undefined { |
| 30 | return lookupPackageJson(cwd ?? process.cwd(), path.normalize(stopAt ?? os.homedir())); |
| 31 | } |
| 32 | |
| 33 | export function parseMajorVersion(ver: string): number | undefined { |
| 34 | let version = ver; |
no test coverage detected