[AI] Add Yarn constraints to enforce consistent dependency versions (#7229)

* [AI] Add yarn constraints to enforce consistent dependency versions

Adds a `yarn.config.cjs` that uses Yarn 4's built-in constraints feature
to detect when the same dependency is declared with different version
ranges across workspaces. Workspace protocol references and
peerDependencies are excluded from the check.

Also adds a `yarn constraints` convenience script and the `@yarnpkg/types`
dev dependency for type-checked constraint authoring.

https://claude.ai/code/session_01B1xRjZXn6b18anZjo8cbqb

* Add release notes for PR #7229

* Add constraints job to GitHub Actions workflow

* Fix constraints

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Matiss Janis Aboltins
2026-03-17 16:00:34 +00:00
committed by GitHub
parent dfd6e468a6
commit c4ee71409e
6 changed files with 88 additions and 6 deletions

View File

@@ -25,8 +25,8 @@
"@r74tech/docusaurus-plugin-panzoom": "^2.4.0",
"clsx": "^2.1.1",
"prism-react-renderer": "^2.4.1",
"react": "^19.2.4",
"react-dom": "^19.2.4"
"react": "19.2.4",
"react-dom": "19.2.4"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^3.9.2",