Skip to content

Dependency Checker

Actions
Checks if some dependencies are used but not found in pacakge.json
1.0.1
Latest
Star (4)

Dependency Checker Action

This action checks if JavaScript dependencies are used but missing from package.json file.

Example of failed check: image

Inputs

PATH

Relative path to project. Default value: ".".

IGNORE_PACKAGES

List of packages to ignore from being reported as missing. Default value: [].

IGNORE_FILES

List of files to ignore from being checked. Default value: [].

Example usage

Example usage of dependency checker that will check /projects/server used code and compare to /projects/server/package.json listed dependencies:

This example case will ignore @babel/core dependency and will ignore files that end with .test.js and customfile.js.

name: Check
runs-on: ubuntu-latest
steps:
  - uses: Marcisbee/dependency-check-action
    with:
      PATH: "/projects/server"
      IGNORE_PACKAGES:
        - @babel/core
      IGNORE_FILES:
        - .test.js
        - /customfile.js

Dependency Checker is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Checks if some dependencies are used but not found in pacakge.json
1.0.1
Latest

Dependency Checker is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.