From 844844a2a2c384f079209e386f794165f59813b3 Mon Sep 17 00:00:00 2001 From: Louis Grasset Date: Sat, 27 Jan 2024 18:57:57 +0100 Subject: [PATCH] chore: migrate to the new husky v9 --- .husky/commit-msg | 3 --- .husky/pre-commit | 3 --- package-lock.json | 1 - package.json | 4 ++-- 4 files changed, 2 insertions(+), 9 deletions(-) mode change 100755 => 100644 .husky/commit-msg mode change 100755 => 100644 .husky/pre-commit diff --git a/.husky/commit-msg b/.husky/commit-msg old mode 100755 new mode 100644 index 482222a..78f4d1d --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - npm run commitlint ${1} diff --git a/.husky/pre-commit b/.husky/pre-commit old mode 100755 new mode 100644 index c08c2cd..b9abce5 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - npm run lint ${1} diff --git a/package-lock.json b/package-lock.json index 4ea93d9..b5a8d14 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,7 +7,6 @@ "": { "name": "touitomamout", "version": "1.6.5", - "hasInstallScript": true, "license": "AGPL-3.0-or-later", "dependencies": { "@atproto/api": "^0.9.5", diff --git a/package.json b/package.json index 42ecf65..c203ab2 100644 --- a/package.json +++ b/package.json @@ -11,8 +11,8 @@ "predeploy": "npm ci && npm run build", "pm2": "bash deployment/pm2.sh", "pm2:update": "bash deployment/pm2.sh --update", - "postinstall": "husky install .husky", - "commitlint": "commitlint --edit" + "commitlint": "commitlint --edit", + "prepare": "husky" }, "engines": { "node": ">=18.0.0"