Skip to content

Commit 0b92623

Browse files
mattstromMatt Strom
andauthored
build(deps-dev): bump husky from 7.0.4 to 8.0.1 (#538)
Co-authored-by: Matt Strom <matt.strom@evolv.ai>
1 parent 17df170 commit 0b92623

File tree

4 files changed

+19
-17
lines changed

4 files changed

+19
-17
lines changed

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx commitlint --edit $1

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npm run lint && npm test

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,20 @@
1010
"build": "tsc",
1111
"prewatch": "rimraf dist",
1212
"watch": "tsc -w",
13-
"test": "snyk test && echo \"No test specified\"",
13+
"test": "echo \"No test specified\"",
1414
"lint": "tslint --project tsconfig.json",
1515
"lint:fix": "tslint --fix --project tsconfig.json",
1616
"commit": "git-cz",
1717
"release": "semantic-release --no-ci",
1818
"release:dry-run": "semantic-release --no-ci --dry-run",
1919
"snyk-protect": "snyk protect",
20-
"prepare": "npm run snyk-protect && npm run build"
20+
"prepare": "npm run snyk-protect && npm run build && husky install"
2121
},
2222
"config": {
2323
"commitizen": {
2424
"path": "./node_modules/cz-conventional-changelog"
2525
}
2626
},
27-
"husky": {
28-
"hooks": {
29-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
30-
"pre-commit": "npm run lint && npm test"
31-
}
32-
},
3327
"contributors": [
3428
"Matt Strom <matt@mattstrom.com>"
3529
],
@@ -80,7 +74,7 @@
8074
"@types/glob-to-regexp": "^0.4.0",
8175
"commitizen": "^4.2.5",
8276
"cz-conventional-changelog": "^3.3.0",
83-
"husky": "^7.0.4",
77+
"husky": "^8.0.0",
8478
"rimraf": "^3.0.2",
8579
"semantic-release": "^19.0.5",
8680
"snyk": "^1.1011.0",

0 commit comments

Comments
 (0)