Skip to content

Commit 5690431

Browse files
committed
chore: move cli sources and configuration after merge
1 parent 964c6b5 commit 5690431

8 files changed

Lines changed: 246 additions & 24 deletions

File tree

apps/RNApp/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"version": "0.0.1",
44
"private": true,
55
"scripts": {
6-
"android": "react-native run-android",
7-
"ios": "react-native run-ios",
6+
"build:android": "react-native build-android",
7+
"build:ios": "react-native build-ios",
88
"lint": "eslint .",
99
"start": "react-native start",
1010
"test": "jest"
@@ -14,7 +14,6 @@
1414
"@react-native/new-app-screen": "0.82.1",
1515
"@react-navigation/native": "^7.0.15",
1616
"@react-navigation/native-stack": "^7.2.1",
17-
"babel-plugin-module-resolver": "5.0.2",
1817
"react": "19.1.1",
1918
"react-native": "0.82.1",
2019
"react-native-safe-area-context": "^5.5.2",

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
"@rspress/core": "2.0.0-beta.32"
1616
},
1717
"devDependencies": {
18-
"@types/node": "^20"
18+
"@types/node": "^25.0.3"
1919
}
2020
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"@commitlint/config-conventional": "^20.0.0",
2525
"@react-native/eslint-config": "0.82.1",
2626
"@release-it/conventional-changelog": "^10.0.1",
27+
"babel-plugin-module-resolver": "5.0.2",
2728
"eslint": "^8.57.1",
2829
"eslint-config-prettier": "^10.1.8",
2930
"eslint-plugin-prettier": "^5.1.3",

packages/react-native-brownfield/package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "2.0.1",
44
"license": "MIT",
55
"author": "Michal Chudziak <mike.chudziak@callstack.com>",
6+
"bin": "lib/commonjs/cli/index.js",
67
"contributors": [
78
"Piotr Drapich <piotr.drapich@callstack.com>"
89
],
@@ -67,8 +68,16 @@
6768
"@babel/runtime": "^7.25.0",
6869
"@react-native/babel-preset": "0.82.1",
6970
"@react-native/eslint-config": "0.82.1",
71+
"@rock-js/platform-android": "^0.12.3",
72+
"@rock-js/platform-apple-helpers": "^0.12.3",
73+
"@rock-js/platform-ios": "^0.12.3",
74+
"@rock-js/tools": "^0.12.3",
7075
"@types/jest": "^30.0.0",
76+
"@types/lodash.clonedeep": "^4.5.9",
77+
"@types/node": "^25.0.3",
7178
"@types/react": "^19.1.1",
79+
"commander": "^14.0.2",
80+
"lodash.clonedeep": "^4.5.0",
7281
"react": "19.1.1",
7382
"react-native": "0.82.1",
7483
"react-native-builder-bob": "^0.40.14",

src/cli/index.ts renamed to packages/react-native-brownfield/src/cli/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ curryOptions(program.command('package:ios').description('Build iOS package'), [
298298
const artifactName = `${scheme}.xcframework`;
299299
artifactNames.push(artifactName);
300300
await mergeFrameworks({
301-
iosBaseDir,
301+
sourceDir: iosBaseDir,
302302
frameworkPaths: appFrameworkPathsToMerge,
303303
outputPath: path.join(outDir, artifactName),
304304
});
@@ -331,7 +331,7 @@ curryOptions(program.command('package:ios').description('Build iOS package'), [
331331
const artifactName = 'ReactBrownfield.xcframework';
332332
artifactNames.push(artifactName);
333333
await mergeFrameworks({
334-
iosBaseDir,
334+
sourceDir: iosBaseDir,
335335
frameworkPaths: sdks.map((sdk) =>
336336
path.join(
337337
options.buildFolder ??

src/cli/types.ts renamed to packages/react-native-brownfield/src/cli/types.ts

File renamed without changes.

src/cli/utils.ts renamed to packages/react-native-brownfield/src/cli/utils.ts

File renamed without changes.

0 commit comments

Comments
 (0)