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"