( bundledFileName: string, bundledCode: string )
| 170 | } |
| 171 | |
| 172 | async function loadConfigFromWrittenFile( |
| 173 | bundledFileName: string, |
| 174 | bundledCode: string |
| 175 | ): Promise<unknown> { |
| 176 | await writeFile(bundledFileName, bundledCode); |
| 177 | try { |
| 178 | return (await import(pathToFileURL(bundledFileName).href)).default; |
| 179 | } finally { |
| 180 | unlink(bundledFileName).catch(error => console.warn(error?.message || error)); |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | async function getConfigList(configFileExport: any, commandOptions: any): Promise<any[]> { |
| 185 | const config = await (typeof configFileExport === 'function' |
no test coverage detected
searching dependent graphs…