Constraints
Disallowing dependencies
disallow
constraints will evaluate all direct and transitive dependencies for a package.
If any local dependency has tags that match a selector within the disallow
array, then the constraint will fail.
Disallow specific direct or transitive dependencies
Use a tag as a selector to disallow subsets of local dependencies.
Disllow all dependencies
Use *
as a selector to disallow all local dependencies.
Example
The following constraint…
.commonality/config.json
…will fail for the following dependency graph.
This is due to the fact that a transitive dependency contains the matching beta
tag.
Was this page helpful?