From 7921d58c19fc3193344dc1c560a7862b0ac33ae0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=8D=C3=B1igo=20Marqu=C3=ADnez=20Prado?= <25435858+inigomarquinez@users.noreply.github.com> Date: Fri, 22 Nov 2024 17:13:16 +0100 Subject: [PATCH] ci: improve husky --- .husky/commit-msg | 3 --- .husky/pre-commit | 3 --- .husky/pre-push | 3 --- package.json | 2 +- 4 files changed, 1 insertion(+), 10 deletions(-) mode change 100755 => 100644 .husky/pre-commit 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'",