From ceee68a2db363e9d9a638aa4ed8569fd82d1013a Mon Sep 17 00:00:00 2001 From: Reto Date: Thu, 25 Jul 2024 22:00:11 +0200 Subject: [PATCH] fix: support dependencies with ".swift" at the end of name (#7583) Co-authored-by: Mark Anderson --- cli/src/util/iosplugin.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cli/src/util/iosplugin.ts b/cli/src/util/iosplugin.ts index a9648fd2f..8e490fe39 100644 --- a/cli/src/util/iosplugin.ts +++ b/cli/src/util/iosplugin.ts @@ -17,7 +17,10 @@ export async function getPluginFiles(plugins: Plugin[]): Promise { const options: ReaddirPOptions = { filter: item => { - if (item.path.endsWith('.swift') || item.path.endsWith('.m')) { + if ( + item.stats.isFile() && + (item.path.endsWith('.swift') || item.path.endsWith('.m')) + ) { return true; } else { return false;