yarn constraints — Yarn CLI reference
Check project constraints
Docs/Reference/CLI/constraints
yarn constraints
Check project constraints
yarn constraints
This command runs constraints on your project and reports each unmet rule. If any error remains, the command exits with a non-zero exit code.
If the --fix flag is used, Yarn attempts to automatically fix unambiguous issues through a multi-pass process capped at 10 iterations. Some ambiguous patterns cannot be autofixed; in those cases, you must manually specify the right resolution.
Constraints are configured through JavaScript or TypeScript constraint files.
Attempt to automatically fix unambiguous issues, following a multi-pass process
Format the output as an NDJSON stream