Added husky

This commit is contained in:
Aleksandr Kraiz
2023-02-10 17:41:35 +04:00
parent 3076258339
commit 26bb95637a
3 changed files with 7 additions and 3 deletions

4
.husky/pre-commit Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npm test

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "@orionprotocol/sdk",
"version": "0.17.0",
"version": "0.17.4",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@orionprotocol/sdk",
"version": "0.17.0",
"version": "0.17.4",
"license": "ISC",
"dependencies": {
"@ethersproject/abstract-signer": "^5.7.0",

View File

@@ -11,7 +11,7 @@
"clean": "rimraf lib/*",
"watch-ts": "tsc -w --skipLibCheck",
"watch-js": "nodemon lib/esm/index.js",
"prepare": "npm run build",
"prepare": "husky install",
"prebuild": "tsc",
"build": "webpack",
"coverage": "jest --coverage",