Adding husky and lint-staged to ensure we have proper builds and clean files.
Motivation and Context
Some packages did not properly have their dependencies set up correctly. This won't be an issue when installing @vonage/server-sdk but will present an issue when installing the individual package. Having Husky running the depcheck, linter (for staged files only) and jest, will help developers catch silly mistakes early.
Testing Details
run npm install and then make a commit
Example Output or Screenshots (if appropriate)
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist
[X] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
Description
Adding
husky
andlint-staged
to ensure we have proper builds and clean files.Motivation and Context
Some packages did not properly have their dependencies set up correctly. This won't be an issue when installing
@vonage/server-sdk
but will present an issue when installing the individual package. Having Husky running thedepcheck
,linter
(for staged files only) and jest, will help developers catch silly mistakes early.Testing Details
run
npm install
and then make a commitExample Output or Screenshots (if appropriate)
Types of changes
Checklist