This action checks if JavaScript dependencies are used but missing from package.json file.
Relative path to project. Default value: ".".
List of packages to ignore from being reported as missing. Default value: [].
List of files to ignore from being checked. Default value: [].
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.jsandcustomfile.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