(plugin, projectRoot)
| 16 | } |
| 17 | |
| 18 | async function importPlugin(plugin, projectRoot) { |
| 19 | if (Array.isArray(plugin) && typeof plugin[0] === 'string') { |
| 20 | plugin[0] = await importPluginForPath(plugin[0], projectRoot) |
| 21 | } |
| 22 | if (typeof plugin === 'string') { |
| 23 | plugin = await importPluginForPath(plugin, projectRoot) |
| 24 | } |
| 25 | return plugin |
| 26 | } |
| 27 | |
| 28 | async function getOptions(options, projectRoot) { |
| 29 | const { |
no test coverage detected