diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f1fcb33..031fee6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,7 @@ jobs: run: yarn lint - name: Install Expo example dependencies - run: npm --prefix examples/expo-example ci + run: yarn expo-example:install - name: Typecheck files run: yarn typecheck diff --git a/.github/workflows/quick-checks.yml b/.github/workflows/quick-checks.yml index 29d4e41..17b8063 100644 --- a/.github/workflows/quick-checks.yml +++ b/.github/workflows/quick-checks.yml @@ -28,7 +28,7 @@ jobs: run: yarn lint - name: Install Expo example dependencies - run: npm --prefix examples/expo-example ci + run: yarn expo-example:install - name: Typecheck files run: yarn typecheck diff --git a/AGENTS.md b/AGENTS.md index 2f3aefa..2c673c2 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -102,8 +102,9 @@ yarn lint # Run SDK example (React Native CLI) yarn sdk-example start -# Run Expo example (standalone — uses npm, not yarn workspace) -cd examples/expo-example && npm install && npm start +# Run Expo example +yarn expo-example:install +yarn expo-example ``` ## Testing @@ -123,11 +124,9 @@ plan for when automated tests are added. change. - The `lib/` directory is generated; never edit it by hand. - `examples/expo-example` is intentionally outside the Yarn workspace (`!examples/expo-example` in - `package.json#workspaces`) — install its deps with `npm`, not `yarn`. + `package.json#workspaces`) — install its deps from the repo root with `yarn expo-example:install`. - Native builds (Android/iOS) are slow; validate JS-layer changes with `yarn lint && yarn typecheck` first; leave full native builds to CI. -- The `resolutions` block in `package.json` pins `0xtrails` / `@0xtrails/*` — update all three - entries together when bumping the trails version. - Pre-release versions use the `0.x.y-alpha.N` scheme. Publishing steps are in `PUBLISHING.md`. ## CI/CD @@ -143,7 +142,8 @@ Android and iOS PR checks pass before merging; validate locally when you need fa ## Common Pitfalls - Running `yarn` inside `examples/expo-example` will fail — it's not a Yarn workspace member. Use - `npm` there, or `yarn expo-example