danger-plugin-duplicate-packages
v1.0.1
Published
This is a Danger Plugin that allows checking for multiple copies of packages in the dependency tree.
Downloads
911
Maintainers
Readme
danger-plugin-duplicate-packages
This danger plugin can be used to check for duplicates of specific packages and throw a failure if it finds any. This has a few different use cases, such as fighting bundle size, or ensuring only one copy react is loaded at a time.
Installation
yarn add danger-plugin-duplicate-packages -D
Usage
Simply add this to your Dangerfile:
import { checkDuplicatePackages } from 'danger-plugin-duplicate-packages'
checkDuplicatePackages({
packageNames: ["react-native"]
})
And checkDuplicatePackages
will output an error if it finds multiple copies of react-native
Contributing
See CONTRIBUTING.md.