Skip to content

Commit 160c60b

Browse files
committed
feat: add documentation for packageRunner flag
1 parent 9ce843b commit 160c60b

1 file changed

Lines changed: 30 additions & 1 deletion

File tree

apps/docs/docs/eoas/publish.mdx

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ It supports the fingerprint policy.
1414
To publish an update, run the following command in your Expo project:
1515

1616
```bash
17-
npx eoas publish --branch <branch-name> [--nonInteractive] [--outputDir <outputDir>] [--platform <platform>]
17+
npx eoas publish --branch <branch-name> [--nonInteractive] [--outputDir <outputDir>] [--platform <platform>] [--packageRunner <runner>]
1818
```
1919

2020
This command will retrieve the expo credentials from your .expo/state.json file or an EXPO_TOKEN in your runtime environment to authenticate
@@ -26,6 +26,35 @@ the request to the Expo API.
2626
Or with dotenv: `dotenv -e .env.local -- npx eoas publish --branch <branch-name>`.
2727
:::
2828

29+
## Package runner
30+
31+
By default, EOAS uses `npx` to spawn Expo CLI commands (`expo export`, `expo config`). If your project uses a different package manager, you can override this.
32+
33+
**Resolution priority:**
34+
35+
1. `--packageRunner` CLI flag
36+
2. `EOAS_PACKAGE_RUNNER` environment variable
37+
3. `packageManager` field in the nearest `package.json` (e.g. `"packageManager": "bun@1.3.6"``bunx`)
38+
4. Falls back to `npx`
39+
40+
| `packageManager` value | Resolved runner |
41+
| --- | --- |
42+
| `bun@x.x.x` | `bunx` |
43+
| `pnpm@x.x.x` | `pnpx` |
44+
| `yarn@x.x.x` | `npx` |
45+
| `npm@x.x.x` | `npx` |
46+
47+
```bash
48+
# Auto-detected from package.json (zero config)
49+
npx eoas publish --branch production
50+
51+
# Explicit flag
52+
npx eoas publish --branch production --packageRunner bunx
53+
54+
# Via environment variable
55+
EOAS_PACKAGE_RUNNER=bunx eoas publish --branch production
56+
```
57+
2958
## CI/CD
3059

3160
You can automate the process of publishing updates by integrating the `npx eoas publish --nonInteractive` command in your CI/CD pipeline.

0 commit comments

Comments
 (0)