danger-plugin-yarn
Provides dependency information on dependency changes in a PR
Usage
Install:
yarn add danger-plugin-yarn --dev
At a glance:
import yarn from 'danger-plugin-yarn'
schedule(yarn())
Provides 4 separate rules:
checkForRelease
- Provides a 🎉 when there's a package version bump.checkForNewDependencies
(async) - Provides npmjs.com and yarn why
metadata about new dependencies.checkForLockfileDiff
- Will warn you when there are dependencies
or devDependencies
changes without a yarn.lock
change.checkForTypesInDeps
- Will fail the build if you add any @types/[x]
to dependencies
instead of devDependencies
.
And exports a default function to handle all of them at once.
Note: async functions like the default one have be to schedule
'd by Danger.
Changelog
See the GitHub release history.
Contributing
See CONTRIBUTING.md.