Skip to content

Commit afb9188

Browse files
chore: fix commitlint on Windows (#580)
1 parent 0436b6f commit afb9188

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

.githooks/commit-msg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22

3-
npm run hook:commit-msg
3+
pnpm exec commitlint --edit $1

.githooks/pre-commit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22

3-
npm run hook:pre-commit
3+
pnpm exec lint-staged

package.json

-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
1717
"contributors:add": "all-contributors add",
1818
"contributors:generate": "all-contributors generate",
19-
"hook:commit-msg": "npx --no -- commitlint --edit $1",
20-
"hook:pre-commit": "lint-staged",
2119
"prettify": "prettier --write ."
2220
},
2321
"engines": {

0 commit comments

Comments
 (0)