yarn / 3.1.1 / cli / constraints / query.html /

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 <query>

Examples

List all dependencies throughout the workspace :

yarn constraints query 'workspace_has_dependency(_, DependencyName, _, _).'

Options

Definition
Description
--json Format the output as an NDJSON stream

Details

This command will output all matches to the given prolog query.

© 2016–present Yarn Contributors
Licensed under the BSD License.
https://yarnpkg.com/cli/constraints/query