Skip to content

Commit b54fe96

Browse files
committed
chore(husky): run tests in pre-commit instead of commitlint
1 parent 1dc68db commit b54fe96

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

.husky/pre-commit

100755100644
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
# TODO: re-enable this once we were able to upgrade to the newer ESLint
5-
# ./node_modules/.bin/lint-staged
4+
# Run fast pre-commit checks (use yarn in this repo)
5+
yarn -s test

commitlint.config.mjs renamed to commitlint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export default {
1+
module.exports = {
22
extends: ["@commitlint/config-conventional"],
33
rules: {
44
"footer-max-line-length": [1, "always", 80],

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
"test:all": "NODE_OPTIONS=\"--experimental-vm-modules\" yarn test:jest:all && yarn test:tap:all",
103103
"lerna-publish-canary": "lerna publish --canary --force-publish --dist-tag $(git branch --show-current) --preid $(git branch --show-current) --loglevel=silly --ignore-scripts --ignore-prepublish",
104104
"preinstall": "curl -L https://foundry.paradigm.xyz | bash",
105-
"prepare": "husky install",
105+
"prepare": "husky",
106106
"init-registries": "npm config set @iroha2:registry=https://nexus.iroha.tech/repository/npm-group/"
107107
},
108108
"resolutions": {
@@ -204,7 +204,7 @@
204204
"google-protobuf": "3.21.4",
205205
"grpc-tools": "1.12.4",
206206
"grpc_tools_node_protoc_ts": "5.3.3",
207-
"husky": "7.0.4",
207+
"husky": "9.1.7",
208208
"inquirer": "8.2.6",
209209
"jest": "29.6.2",
210210
"jest-extended": "4.0.1",

yarn.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9873,7 +9873,7 @@ __metadata:
98739873
google-protobuf: "npm:3.21.4"
98749874
grpc-tools: "npm:1.12.4"
98759875
grpc_tools_node_protoc_ts: "npm:5.3.3"
9876-
husky: "npm:7.0.4"
9876+
husky: "npm:9.1.7"
98779877
inquirer: "npm:8.2.6"
98789878
jest: "npm:29.6.2"
98799879
jest-extended: "npm:4.0.1"
@@ -32790,12 +32790,12 @@ __metadata:
3279032790
languageName: node
3279132791
linkType: hard
3279232792

32793-
"husky@npm:7.0.4":
32794-
version: 7.0.4
32795-
resolution: "husky@npm:7.0.4"
32793+
"husky@npm:9.1.7":
32794+
version: 9.1.7
32795+
resolution: "husky@npm:9.1.7"
3279632796
bin:
32797-
husky: lib/bin.js
32798-
checksum: 10/8fecb619ab924bd99b2c9ce494bff88e45369c1125e07a603dfacb4bd60ef86840e08c689794c476189183e6223f0ea93aadebf78e3508479453c219358ca787
32797+
husky: bin.js
32798+
checksum: 10/c2412753f15695db369634ba70f50f5c0b7e5cb13b673d0826c411ec1bd9ddef08c1dad89ea154f57da2521d2605bd64308af748749b27d08c5f563bcd89975f
3279932799
languageName: node
3280032800
linkType: hard
3280132801

0 commit comments

Comments
 (0)