Skip to content

Commit 80ccb79

Browse files
committed
fix: make Rock iOS packaging logic work in non-Rock projects
1 parent fbb2a2e commit 80ccb79

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/cli/src/brownfield/commands/packageIos.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ export const packageIosCommand = curryOptions(
5555
// therefore we resolve it manually from RN's package.json using Rock's utils
5656
reactNativeVersion: getReactNativeVersion(projectRoot),
5757
usePrebuiltRNCore: 0, // for brownfield, it is required to build RN from source
58+
// below: RN CLI config detection in Rock depends on the existence of a Rock config file;
59+
// the below is an escape hatch to provide the config manually and escape Rock's config-dependent logic
60+
iosConfigOverride: {
61+
sourceDir: userConfig.project.ios.sourceDir,
62+
xcodeProject: userConfig.project.ios.xcodeProject,
63+
},
64+
skipCache: true, // cache is dependent on existence of Rock config file
5865
},
5966
platformConfig
6067
);

0 commit comments

Comments
 (0)