* Returns the paths of "pub roots" for a set of package folders/pubspecs, where "pub root" is * the Pub Workspace root (if the package is part of a workspace) or the package folder. * * If multiple packages belong to the same Pub Workspace, it will only be returned once.
(packageFolderOrPubspecPaths: string[])
| 241 | * If multiple packages belong to the same Pub Workspace, it will only be returned once. |
| 242 | */ |
| 243 | function getPubWorkspaceOrPackageFolderPaths(packageFolderOrPubspecPaths: string[]): string[] { |
| 244 | return uniq(packageFolderOrPubspecPaths.map((p) => getPubWorkspaceFolderOrPackageFolderPath(p))).sort(); |
| 245 | } |
| 246 | |
| 247 | /** |
| 248 | * Gets the set of packages in `packageFolderOrPubspecPaths`, folding any workspace packages into |
no test coverage detected