(config: Config, platform: string)
| 54 | } |
| 55 | |
| 56 | export async function getPlugins(config: Config, platform: string): Promise<Plugin[]> { |
| 57 | const possiblePlugins = getIncludedPluginPackages(config, platform) ?? getDependencies(config); |
| 58 | const resolvedPlugins = await Promise.all(possiblePlugins.map(async (p) => resolvePlugin(config, p))); |
| 59 | |
| 60 | return resolvedPlugins.filter((p): p is Plugin => !!p); |
| 61 | } |
| 62 | |
| 63 | export async function resolvePlugin(config: Config, name: string): Promise<Plugin | null> { |
| 64 | try { |
no test coverage detected