(baseName: string)
| 31 | await realpath(path) |
| 32 | |
| 33 | export const findYAMLFilename = async (baseName: string): Promise<string | false> => { |
| 34 | let retVal = `${baseName}.yaml` |
| 35 | if (await isFile(retVal)) { |
| 36 | return retVal |
| 37 | } |
| 38 | |
| 39 | retVal = `${baseName}.yml` |
| 40 | if (await isFile(retVal)) { |
| 41 | return retVal |
| 42 | } |
| 43 | |
| 44 | return false |
| 45 | } |
| 46 | |
| 47 | export const requireDir = async (dirName: string): Promise<string> => { |
| 48 | if (await isDir(dirName)) { |
no test coverage detected