Skip to content

Commit eb668db

Browse files
committed
refactor: changes after CR
1 parent c911168 commit eb668db

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const packageIosCommand = curryOptions(
5555
// below: the userConfig.reactNativeVersion may be a non-semver-format string,
5656
// e.g. '0.82' (note the missing patch component),
5757
// therefore we resolve it manually from RN's package.json using Rock's utils
58-
reactNativeVersion: getReactNativeVersion(projectRoot),
58+
reactNativeVersion: userConfig.reactNativeVersion,
5959
usePrebuiltRNCore: 0, // for brownfield, it is required to build RN from source
6060
packageDir: path.join(brownieCacheDir, 'package'), // the output directory for artifacts
6161
skipCache: true, // cache is dependent on existence of Rock config file

packages/cli/src/brownie/__fixtures__/SecondStore.brownie.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ type SecondStore = {
33
enabled: boolean;
44
};
55

6+
// @ts-expect-error: inexistent module augmentation
67
declare module '@callstack/brownie' {
78
interface BrownieStores {
89
SecondStore: SecondStore;

packages/cli/src/brownie/__fixtures__/TestStore.brownie.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ type TestStore = {
44
isActive: boolean;
55
};
66

7+
// @ts-expect-error: inexistent module augmentation
78
declare module '@callstack/brownie' {
89
interface BrownieStores {
910
TestStore: TestStore;

0 commit comments

Comments
 (0)