Dominic Elm commited on
Commit
cbfa98c
·
1 Parent(s): ab9d59a

chore: make sure that husky hooks are executed

Browse files
Files changed (3) hide show
  1. .husky/commit-msg +7 -0
  2. .husky/pre-commit +0 -1
  3. package.json +0 -7
.husky/commit-msg ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env sh
2
+
3
+ . "$(dirname "$0")/_/husky.sh"
4
+
5
+ npx commitlint --edit $1
6
+
7
+ exit 0
.husky/pre-commit DELETED
@@ -1 +0,0 @@
1
- npm test
 
 
package.json CHANGED
@@ -9,18 +9,11 @@
9
  "typecheck": "pnpm run -r typecheck",
10
  "prepare": "husky"
11
  },
12
- "lint-staged": {},
13
  "commitlint": {
14
  "extends": [
15
  "@commitlint/config-conventional"
16
  ]
17
  },
18
- "husky": {
19
- "hooks": {
20
- "pre-commit": "lint-staged",
21
- "commit-msg": "commitlint --edit $1"
22
- }
23
- },
24
  "engines": {
25
  "node": "20.15.1",
26
  "pnpm": "9.4.0"
 
9
  "typecheck": "pnpm run -r typecheck",
10
  "prepare": "husky"
11
  },
 
12
  "commitlint": {
13
  "extends": [
14
  "@commitlint/config-conventional"
15
  ]
16
  },
 
 
 
 
 
 
17
  "engines": {
18
  "node": "20.15.1",
19
  "pnpm": "9.4.0"