(path: string)
| 37 | type PackageWithDependencies = Partial<Record<DependencyField, DependencyMap>> |
| 38 | |
| 39 | function readJsonFile(path: string): unknown { |
| 40 | return JSON.parse(readFileSync(path, 'utf8')) |
| 41 | } |
| 42 | |
| 43 | function dependencyMap(value: unknown): DependencyMap { |
| 44 | if (!value || typeof value !== 'object' || Array.isArray(value)) { |