Skip to content

Commit

Permalink
fix: support dependencies with ".swift" at the end of name (#7583)
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Anderson <[email protected]>
  • Loading branch information
rainbow-six3 and markemer authored Jul 25, 2024
1 parent e0f299d commit ceee68a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cli/src/util/iosplugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ export async function getPluginFiles(plugins: Plugin[]): Promise<string[]> {

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

0 comments on commit ceee68a

Please sign in to comment.