- Adds the possibility to check on deprecated npm modules (see sample rule snippet below).
deprecated
is just an other 'dependency type' - so it should be a doddle to use. - ⬆️ ajv
- 📖 documents some of the internal interfaces so maintaining dependency-cruiser will still be fun half a year or more from now
In your dependency-cruiser config you can use the 'deprecated' attribute, just like you use other dependency types e.g. like this:
{
"name": "no-deprecated-npm",
"comment": "These npm modules are deprecated - find an alternative.",
"severity": "warn",
"from": {},
"to": { "dependencyTypes": ["deprecated"] }
}