depcheck-ci

1.0.1 • Public • Published

Depcheck CI

Depcheck util that plays nice with ci

Differences with depcheck

  • Also checks for non strict dependencies (configurable)
  • Does not check for missing dependencies
  • Actually fails on errors (reliable for ci)
  • Configurable through .depcheckrc or package.json section

Install

npm i --save-dev --save-exact depcheck-ci

Add npm script in package.json:

scripts: {
  "depcheck": "depcheck-ci"
}

Usage

npm run depcheck

Configuration

Either add a .depcheckrc file on root of project or a depcheck section in package.json

Default settings are:

{
  "ignore": [],
  "ignoreDirs": [
    "node_modules",
    "bower_components"
  ],
  "strict": true,
  "unused": true
}

/depcheck-ci/

    Package Sidebar

    Install

    npm i depcheck-ci

    Weekly Downloads

    3

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • mcasimir