(plugins: Plugin[])
| 290 | // Private Functions |
| 291 | |
| 292 | async function pluginsWithPackageSwift(plugins: Plugin[]): Promise<Plugin[]> { |
| 293 | const pluginList: Plugin[] = []; |
| 294 | for (const plugin of plugins) { |
| 295 | const packageSwiftFound = await pathExists(join(plugin.rootPath, 'Package.swift')); |
| 296 | if (packageSwiftFound) { |
| 297 | pluginList.push(plugin); |
| 298 | } else { |
| 299 | logger.warn(plugin.id + ' does not have a Package.swift'); |
| 300 | } |
| 301 | } |
| 302 | |
| 303 | return pluginList; |
| 304 | } |
no test coverage detected