0.8.7 • Published 10 months ago
exact-dependency-checker v0.8.7
Exact dependency checker
Easily control when your project accepts only exact versions of dependencies.
Usage
Customizing
{
"exactDependencyChecker": {
"blocksToCheck": [
"dependencies",
"devDependencies"
],
"ignoredDependencies": [
"husky",
"jest"
]
}
}
GitHub actions
This action only takes one parameter: the path to the package.json
file to be checked. This param is
optional, and the exact-dependency-checker
will look for the file in the same directory it runs.
uses: matheusjardimb/js-exact-dependency-action@v1.0.0
Example specifying a custom path to package.json
:
uses: matheusjardimb/js-exact-dependency-action@v1.0.0
with:
packageJsonPath: 'app/package.json'
Gitlab
image: node:16.20.0
validate_dependencies:
script:
- export INPUT_PACKAGEJSONPATH='package.json' # Optional
- npx exact-dependency-checker@0.5.0
NPX
export INPUT_PACKAGEJSONPATH='package.json' # Optional
npx exact-dependency-checker@0.4.3
License
See more about the MIT licensing at LICENSE.md. This project was originally created as a fork of github-developer/javascript-action.
Contributing
Pull requests are welcome! See CONTRIBUTING.md for more. Please consider activating pre-commit before
committing (npm run pre-commit.install
).