(configPath?: string)
| 78 | * Returns a clone to prevent mutation of the singleton default |
| 79 | */ |
| 80 | export function loadConfigOrDefault(configPath?: string): Config { |
| 81 | if (!configPath) { |
| 82 | return { ...DEFAULT_CONFIG }; // Return clone to prevent singleton mutation |
| 83 | } |
| 84 | |
| 85 | return loadConfig(configPath); |
| 86 | } |
| 87 | |
| 88 | /** |
| 89 | * Options that can be passed to merge with config |
no test coverage detected
searching dependent graphs…