74 fix husky setup (#75)

* test husky

* Add a prepare script for husky install
This commit is contained in:
Aswin V 2022-01-31 16:46:33 +05:30 committed by GitHub
parent 3220104345
commit 9c7aa984d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

0
.husky/pre-commit Normal file → Executable file
View File

View File

@ -23,7 +23,8 @@
"sort": "npx sort-package-json",
"sql": "cross-env JACKSON_API_KEYS=secret DB_ENGINE=sql DB_TYPE=postgres DB_URL=postgres://postgres:postgres@localhost:5432/postgres npm run dev",
"start": "next start -p 5000",
"swagger-jsdoc": "swagger-jsdoc -d swagger/swaggerDefinition.js npm/src/**/*.ts -o swagger/swagger.json arg"
"swagger-jsdoc": "swagger-jsdoc -d swagger/swaggerDefinition.js npm/src/**/*.ts -o swagger/swagger.json arg",
"prepare": "husky install"
},
"husky": {
"hooks": {
@ -61,4 +62,4 @@
"engines": {
"node": ">=14.18.1"
}
}
}