Skip to content

Add danger check for duplicate yarn dependencies

Lukas 'ai-pi' Eipert requested to merge 51226-check-yarn-lock into master

What does this MR do?

This danger check utilises yarn-deduplicate in order to show duplicate dependencies in the yarn.lock dependency tree. Often when introducing new dependencies or updating existing ones, yarn does not seem to build the most optimal dependency tree.

In order to prevent those unnecessary dependency updates we are nudging developers and maintainers to resolve these issues in MRs. Automating this with danger especially helps, as yarn.lock files are not that easy to review.

Example output:

gitlab.com_gitlab-org_gitlab-ce_merge_requests_21591__2_

What are the relevant issue numbers?

Does this MR meet the acceptance criteria?

Edited by Lukas 'ai-pi' Eipert

Merge request reports