Skip to content

Commit

Permalink
fix(cli): Change Capacitor plugin files check (#7375)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Apr 2, 2024
1 parent 9367ecc commit fbfb778
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/src/util/iosplugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string[]> {
let filenameList: string[] = [];
Expand All @@ -25,7 +26,7 @@ export async function getPluginFiles(plugins: Plugin[]): Promise<string[]> {
};

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);
Expand Down

0 comments on commit fbfb778

Please sign in to comment.