Commit 648d96b
chore: clean up root peer deps and drop ignored resolutions (#1083)
## Summary
Silences the peer-dep and `resolutions` warnings that show up on every
root `yarn install`:
- Remove `expo-router` from root `devDependencies` — it's only consumed
by the Expo apps (`apps/llm`, `apps/computer-vision`,
`apps/text-embeddings`), each of which already declares it. At the root
it pulled in a chain of unmet peer warnings (`expo`, `expo-constants`,
`expo-linking`, `react`, `react-native`,
`react-native-safe-area-context`, `react-native-screens`).
- Add `@babel/eslint-parser` and its own peer `@babel/core` to root
`devDependencies` to satisfy `eslint-plugin-ft-flow`'s peer requirement.
- Delete the `resolutions` field inside
`packages/react-native-executorch/package.json`. Yarn 4 only honors
`resolutions` at the workspace root, so it was being ignored (`YN0057`),
and it pinned `@types/react` to `^18.2.44` while every workspace already
uses `~19.x` — dead config.
Before:
```
➤ YN0057: react-native-executorch: Resolutions field will be ignored
➤ YN0002: ...doesn't provide @babel/eslint-parser (requested by eslint-plugin-ft-flow)
➤ YN0002: ...doesn't provide expo (requested by expo-router)
➤ YN0002: ...doesn't provide expo-constants (requested by expo-router)
➤ YN0002: ...doesn't provide expo-linking (requested by expo-router)
➤ YN0002: ...doesn't provide react (requested by expo-router)
➤ YN0002: ...doesn't provide react-native (requested by expo-router)
➤ YN0002: ...doesn't provide react-native-safe-area-context (requested by expo-router)
➤ YN0002: ...doesn't provide react-native-screens (requested by expo-router)
➤ YN0086: Some peer dependencies are incorrectly met
```
After: `yarn` completes without any warning lines.
## Test plan
- [ ] `yarn` at repo root completes without `YN0002` / `YN0057` /
`YN0086` warnings
- [ ] `yarn lint` passes
- [ ] `yarn typecheck` passes
- [ ] Expo apps (`apps/llm`, `apps/computer-vision`,
`apps/text-embeddings`) still resolve `expo-router` from their own
`dependencies`
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 93a4703 commit 648d96b
3 files changed
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
28 | | - | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | 84 | | |
88 | 85 | | |
89 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
14472 | 14472 | | |
14473 | 14473 | | |
14474 | 14474 | | |
| 14475 | + | |
| 14476 | + | |
14475 | 14477 | | |
14476 | 14478 | | |
14477 | 14479 | | |
| |||
14481 | 14483 | | |
14482 | 14484 | | |
14483 | 14485 | | |
14484 | | - | |
14485 | 14486 | | |
14486 | 14487 | | |
14487 | 14488 | | |
| |||
0 commit comments