Add husky

This commit is contained in:
Jason Jafari 2024-06-13 23:22:25 -04:00
parent 7e3eac7016
commit ba88aeda9f
3 changed files with 20 additions and 2 deletions

6
.husky/pre-commit Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npm run healthy-check
npm run increase-version
git add package.json

View File

@ -1,10 +1,18 @@
{
"name": "mlModelSaver",
"version": "1.0.1",
"version": "1.0.2",
"description": "Make life easier for save and serving ml models",
"main": "index.js",
"repository": "git@github.com:smartdev-ca/mlModelSaver.git",
"author": "Jason Jafari <me@jasonjafari.com>",
"license": "MIT",
"private": false
"private": false,
"dependencies": {
"husky": "^9.0.11"
},
"scripts": {
"increase-version": "npm --force --no-git-tag-version version patch",
"healthy-check": "ls -la",
"prepare": "husky install"
}
}

View File

@ -2,3 +2,7 @@
# yarn lockfile v1
husky@^9.0.11:
version "9.0.11"
resolved "https://registry.yarnpkg.com/husky/-/husky-9.0.11.tgz#fc91df4c756050de41b3e478b2158b87c1e79af9"
integrity sha512-AB6lFlbwwyIqMdHYhwPe+kjOC3Oc5P3nThEoW/AaO2BX3vJDjWPFxYLxokUZOo6RNX20He3AaT8sESs9NJcmEw==