(file: string)
| 188 | } |
| 189 | |
| 190 | export async function existsAndIsDirectoryAsync(file: string): Promise<boolean> { |
| 191 | try { |
| 192 | const stat = await fs.promises.stat(file); |
| 193 | return stat?.isDirectory() ?? false; |
| 194 | } catch { |
| 195 | return false; |
| 196 | } |
| 197 | } |
| 198 | |
| 199 | export function hasPackageMapFile(folder: string): boolean { |
| 200 | return existsAndIsFileSync(path.join(folder, ".dart_tool", "package_config.json")); |
no outgoing calls
no test coverage detected