From fbfb77825fdd3343e85868ea28b8e14a482dcf4a Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Tue, 2 Apr 2024 16:52:33 +0200 Subject: [PATCH] fix(cli): Change Capacitor plugin files check (#7375) --- cli/src/util/iosplugin.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/src/util/iosplugin.ts b/cli/src/util/iosplugin.ts index 725a03e24..d2d88f608 100644 --- a/cli/src/util/iosplugin.ts +++ b/cli/src/util/iosplugin.ts @@ -10,6 +10,7 @@ import { resolve } from 'path'; import { getCordovaPlugins } from '../cordova'; import type { Config } from '../definitions'; import type { Plugin } from '../plugin'; +import { getPluginType, PluginType } from '../plugin'; export async function getPluginFiles(plugins: Plugin[]): Promise { let filenameList: string[] = []; @@ -25,7 +26,7 @@ export async function getPluginFiles(plugins: Plugin[]): Promise { }; for (const plugin of plugins) { - if (typeof plugin.ios?.name !== 'undefined') { + if (plugin.ios && getPluginType(plugin, 'ios') === PluginType.Core) { const pluginPath = resolve(plugin.rootPath, plugin.ios?.path); const filenames = await readdirp(pluginPath, options); filenameList = filenameList.concat(filenames);