@radhya/mach 2.1.10 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -402,6 +402,7 @@ Create a `mach.config.json` in your project root:
402
402
  {
403
403
  "projectId": "your-project-id",
404
404
  "framework": "react-native",
405
+ "appDirectory": ".",
405
406
  "name": "MyApp",
406
407
  "slug": "my-app",
407
408
  "nodeVersion": "24",
@@ -442,12 +443,30 @@ Create a `mach.config.json` in your project root:
442
443
 
443
444
  ### Root Properties
444
445
 
445
- | Property | Description |
446
- | ------------- | --------------------------------------------------------------------------------------------------------------- |
447
- | `projectId` | Auto-generated UUID linking to your Dashboard project |
448
- | `framework` | Required build framework: `react-native`, `expo`, or `flutter`. Builds never infer this from `package.json` |
449
- | `name` | App display name |
450
- | `nodeVersion` | Node.js version to use on the build machine (e.g. `"24"`, `"20.11.0"`). Switches via nvm before installing deps |
446
+ | Property | Description |
447
+ | -------------- | ------------------------------------------------------------------------------------------------------------------------------- |
448
+ | `projectId` | Auto-generated UUID linking to your Dashboard project |
449
+ | `framework` | Required build framework: `react-native`, `expo`, or `flutter`. Builds never infer this from `package.json` |
450
+ | `appDirectory` | Optional mobile app path relative to the repository root, for example `apps/mobile`. Defaults to `"."` for existing projects. |
451
+ | `name` | App display name |
452
+ | `nodeVersion` | Node.js version to use on the build machine (e.g. `"24"`, `"20.11.0"`). Switches via nvm before installing deps |
453
+
454
+ ### Monorepo Layout
455
+
456
+ Keep `mach.config.json`, the package-manager lockfile, and workspace
457
+ configuration at the repository root. Set `appDirectory` only when the Expo or
458
+ bare React Native app lives below that root:
459
+
460
+ ```json
461
+ {
462
+ "framework": "react-native",
463
+ "appDirectory": "apps/mobile"
464
+ }
465
+ ```
466
+
467
+ Mach uploads and installs from the repository root, then runs Expo, Gradle,
468
+ CocoaPods, and Xcode from `appDirectory`. Root-level projects need no config
469
+ change and continue to use `"."`.
451
470
 
452
471
  ### Platform Properties
453
472