Commit a69f920
chore: silence docs yarn install warnings (#1084)
## Summary
Three warnings that `yarn` printed on every install inside the `docs`
workspace:
- `YN0002` — `@mdx-js/react` peer `@types/react` not provided.
- `YN0002` — `@swmansion/t-rex-ui` peer `react-icons` not provided.
- `YN0060` (×2) — `@signalwire/docusaurus-theme-llms-txt@1.0.0-alpha.9`
declares `react`/`react-dom` `^18.0.0`, but docs uses React 19.
## Changes
- Add `react-icons@^5.5.0` to `docs/package.json` dependencies.
`@swmansion/t-rex-ui`'s icon-rendering components need it at runtime.
- Add `@types/react@~19.2.0` to `docs/package.json` devDependencies.
Legitimate either way since `docs` runs `tsc` for typecheck.
- Add a per-package `logFilters` entry in [.yarnrc.yml](.yarnrc.yml)
scoped to `@signalwire/docusaurus-theme-llms-txt`. Its declared peer
range is stale — the plugin works with React 19, and its latest
published alpha (`1.0.0-alpha.9`) doesn't fix the range.
`packageExtensions` can't widen an existing peer range in Yarn Berry, so
`logFilters` with a package-name pattern is the minimal non-global
suppression. Comment includes a TODO to remove the filter once upstream
publishes a fix.
Before:
```
➤ YN0060: react is listed by your project with version 19.2.3, which doesn't satisfy what @signalwire/docusaurus-theme-llms-txt ... request (^18.0.0)
➤ YN0060: react-dom is listed by your project with version 19.2.3, which doesn't satisfy what @signalwire/docusaurus-theme-llms-txt ... request (^18.0.0)
➤ YN0002: docs@workspace:. doesn't provide @types/react, requested by @mdx-js/react
➤ YN0002: docs@workspace:. doesn't provide react-icons, requested by @swmansion/t-rex-ui
➤ YN0086: Some peer dependencies are incorrectly met
```
After: `yarn` in `docs/` completes without warning lines.
## Test plan
- [ ] `yarn` inside `docs/` completes without `YN0002` / `YN0060` /
`YN0086` warnings
- [ ] `yarn typecheck` (workspace-wide) passes
- [ ] Filter is scoped to signalwire's package name — other `YN0060`
warnings (e.g., from future peer mismatches) would still surface
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 648d96b commit a69f920
3 files changed
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
7 | 22 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4507 | 4507 | | |
4508 | 4508 | | |
4509 | 4509 | | |
| 4510 | + | |
| 4511 | + | |
| 4512 | + | |
| 4513 | + | |
| 4514 | + | |
| 4515 | + | |
| 4516 | + | |
| 4517 | + | |
| 4518 | + | |
4510 | 4519 | | |
4511 | 4520 | | |
4512 | 4521 | | |
| |||
6503 | 6512 | | |
6504 | 6513 | | |
6505 | 6514 | | |
| 6515 | + | |
6506 | 6516 | | |
6507 | 6517 | | |
6508 | 6518 | | |
6509 | 6519 | | |
6510 | 6520 | | |
6511 | 6521 | | |
| 6522 | + | |
6512 | 6523 | | |
6513 | 6524 | | |
6514 | 6525 | | |
| |||
0 commit comments