Skip to content

Commit ae05dd3

Browse files
committed
maint: Directly use git's commit hooks and remove dependency on husky.
1 parent 9de2d28 commit ae05dd3

3 files changed

Lines changed: 6 additions & 9 deletions

File tree

Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,13 @@ PACKAGE_NAME := $(shell node -p "require('./package.json').name")
1919
BUNDLE_NAME := $(subst @patternslib/,,$(subst @plone/,,$(PACKAGE_NAME)))
2020

2121

22-
yarn.lock install:
22+
yarn.lock install: .git/hooks/commit-msg
2323
$(YARN) install
24-
# Install pre commit hook
25-
$(YARN) husky install
24+
25+
26+
.git/hooks/commit-msg:
27+
echo "npx commitlint --edit" > .git/hooks/commit-msg
28+
chmod u+x .git/hooks/commit-msg
2629

2730

2831
.PHONY: clean

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"css-loader": "^7.1.2",
1515
"eslint": "^8.57.0",
1616
"eslint-config-prettier": "^9.1.0",
17-
"husky": "^8.0.3",
1817
"identity-obj-proxy": "^3.0.0",
1918
"jest": "^29.7.0",
2019
"jest-environment-jsdom": "^29.7.0",

yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4497,11 +4497,6 @@ human-signals@^5.0.0:
44974497
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-5.0.0.tgz#42665a284f9ae0dade3ba41ebc37eb4b852f3a28"
44984498
integrity sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==
44994499

4500-
husky@^8.0.3:
4501-
version "8.0.3"
4502-
resolved "https://registry.yarnpkg.com/husky/-/husky-8.0.3.tgz#4936d7212e46d1dea28fef29bb3a108872cd9184"
4503-
integrity sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==
4504-
45054500
hyperdyperid@^1.2.0:
45064501
version "1.2.0"
45074502
resolved "https://registry.yarnpkg.com/hyperdyperid/-/hyperdyperid-1.2.0.tgz#59668d323ada92228d2a869d3e474d5a33b69e6b"

0 commit comments

Comments
 (0)