( packageName: string, versions: Map<string, string> )
| 70 | } |
| 71 | |
| 72 | function rootDependencyVersion( |
| 73 | packageName: string, |
| 74 | versions: Map<string, string> |
| 75 | ): string { |
| 76 | const version = versions.get(packageName) |
| 77 | if (!version) { |
| 78 | throw new Error( |
| 79 | `No version found for ${packageName}; add it to the root package.json` |
| 80 | ) |
| 81 | } |
| 82 | return version |
| 83 | } |
| 84 | |
| 85 | function dependencyVersion( |
| 86 | packageName: string, |
no test coverage detected