From 5ba7ebdef9f153b3fe58a214036d92d72d19d912 Mon Sep 17 00:00:00 2001 From: Okan Sahin Date: Sun, 5 Apr 2026 19:05:10 +0300 Subject: [PATCH] fix(plugin): pass excludedPackages to cliPlugin --- plugin/src/withPodfile.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugin/src/withPodfile.ts b/plugin/src/withPodfile.ts index 1da12a9..cca4d82 100644 --- a/plugin/src/withPodfile.ts +++ b/plugin/src/withPodfile.ts @@ -19,6 +19,10 @@ export const withPodfile: ConfigPlugin<{ excludedPackages && excludedPackages.length > 0 ? `exclude = ["${excludedPackages.join(`", "`)}"]\n use_expo_modules!(exclude: exclude)` : "use_expo_modules!"; + const excludedPackagesArg = + excludedPackages && excludedPackages.length > 0 + ? JSON.stringify(excludedPackages) + : "[]"; const appClipTarget = ` # @generated begin react-native-app-clip @@ -52,7 +56,7 @@ target '${targetName}' do 'node', '--no-warnings', '--eval', - 'require(require.resolve(\\'react-native-app-clip\\')+\\'/../../plugin/build/cliPlugin.js\\').run(' + json + ', [])' + 'require(require.resolve(\\'react-native-app-clip\\')+\\'/../../plugin/build/cliPlugin.js\\').run(' + json + ', ${excludedPackagesArg})' ] config = use_native_modules!(clip_command)