MCPcopy Index your code
hub / github.com/ionic-team/capacitor / pluginsWithPackageSwift

Function pluginsWithPackageSwift

cli/src/util/spm.ts:292–304  ·  view source on GitHub ↗
(plugins: Plugin[])

Source from the content-addressed store, hash-verified

290// Private Functions
291
292async 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}

Callers 1

Calls 1

warnMethod · 0.80

Tested by

no test coverage detected