Skip to content

Commit ceee68a

Browse files
fix: support dependencies with ".swift" at the end of name (#7583)
Co-authored-by: Mark Anderson <[email protected]>
1 parent e0f299d commit ceee68a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cli/src/util/iosplugin.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ export async function getPluginFiles(plugins: Plugin[]): Promise<string[]> {
1717

1818
const options: ReaddirPOptions = {
1919
filter: item => {
20-
if (item.path.endsWith('.swift') || item.path.endsWith('.m')) {
20+
if (
21+
item.stats.isFile() &&
22+
(item.path.endsWith('.swift') || item.path.endsWith('.m'))
23+
) {
2124
return true;
2225
} else {
2326
return false;

0 commit comments

Comments
 (0)