(values: string[] | undefined)
| 49 | const REPOSITORY_SORT_FIRST = ['type', 'url', 'directory'] |
| 50 | |
| 51 | function sortedUnique(values: string[] | undefined): string[] { |
| 52 | return [...new Set(values ?? [])].sort((a, b) => (a < b ? -1 : a > b ? 1 : 0)) |
| 53 | } |
| 54 | |
| 55 | function rootVersionMap(rootPackageJson: JsonObject): Map<string, string> { |
| 56 | const versions = new Map<string, string>() |