(name: string, src: string)
| 8 | * @param src The directory to look in. |
| 9 | */ |
| 10 | export function loadConfig(name: string, src: string): Options { |
| 11 | // attempt to load |
| 12 | const cosmic: Options = cosmiconfigSync(name || '').search(src || '') |
| 13 | |
| 14 | // use what we found or fallback to an empty object |
| 15 | const config = (cosmic && cosmic.config) || {} |
| 16 | return config |
| 17 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…