diff --git a/.husky/commit-msg b/.husky/commit-msg index fa859b0..62c6868 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - npx --no -- commitlint --edit "" diff --git a/.husky/pre-commit b/.husky/pre-commit old mode 100755 new mode 100644 index 6d55ce3..8df8484 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - npm run lint && npx lint-staged diff --git a/.husky/pre-push b/.husky/pre-push index 449fcde..72c4429 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - npm test diff --git a/package.json b/package.json index 0c8d96f..b173d08 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "license": "MIT", "scripts": { "invoke": "ENVIRONMENT=local node_modules/.bin/serverless invoke local --function main", - "prepare": "husky install", + "prepare": "husky", "test": "jest", "coverage": "jest --coverage", "lint": "tslint -c tslint.json 'src/**/*.ts' 'test/**/*.ts'",