yarn constraints query
Plugin
To use this command, first install the
constraints
plugin:yarn plugin import constraints
Query the constraints fact database.
Usage
$> yarn constraints query [--json] <query>
Examples
List all dependencies throughout the workspace :
yarn constraints query 'workspace_has_dependency(_, DependencyName, _, _).'
Details
This command will output all matches to the given prolog query.
If the --json
flag is set the output will follow a JSON-stream output also
known as NDJSON (https://github.com/ndjson/ndjson-spec).