(configFileExport: any, commandOptions: any)
| 182 | } |
| 183 | |
| 184 | async function getConfigList(configFileExport: any, commandOptions: any): Promise<any[]> { |
| 185 | const config = await (typeof configFileExport === 'function' |
| 186 | ? configFileExport(commandOptions) |
| 187 | : configFileExport); |
| 188 | if (Object.keys(config).length === 0) { |
| 189 | return error(logMissingConfig()); |
| 190 | } |
| 191 | return Array.isArray(config) ? config : [config]; |
| 192 | } |
no test coverage detected
searching dependent graphs…