diff --git a/.githooks/commit-msg b/.githooks/commit-msg new file mode 100755 index 0000000..fcc7fea --- /dev/null +++ b/.githooks/commit-msg @@ -0,0 +1,2 @@ +#!/bin/sh +npx --no-install commitlint --edit "$1" --strict diff --git a/package.json b/package.json index 722676f..885321e 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ "verify": "git diff --check", "release:preview": "release-it --dry-run --ci", "release:prepare": "release-it --ci", - "commitlint": "commitlint" + "commitlint": "commitlint", + "prepare": "git config core.hooksPath .githooks" }, "devDependencies": { "@commitlint/cli": "21.2.2",