Skip to content

Commit f728fd9

Browse files
authored
Merge pull request #44 from icelam/husky-upgrade
chore(deps-dev): bump husky from 3.1.0 to 5.1.2
2 parents c39ba63 + 892e0ca commit f728fd9

File tree

7 files changed

+34
-192
lines changed

7 files changed

+34
-192
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
strategy:
1818
matrix:
1919
node-version: [12.x, 13.x, 14.x]
20+
env:
21+
HUSKY: 0
2022
steps:
2123
- name: Checkout repo
2224
uses: actions/checkout@main

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/commit-msg

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

.husky/pre-commit

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

.huskyrc

Lines changed: 0 additions & 6 deletions
This file was deleted.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"build": "rm -rf ./dist && tsc --build --force --verbose",
88
"lint": "eslint --ext .ts,js src",
9-
"prepare": "install-peers",
9+
"prepare": "husky install && install-peers",
1010
"first-release": "npx standard-version --commit-all --tag-prefix v --first-release",
1111
"release": "npx standard-version --commit-all --tag-prefix v",
1212
"extract-latest-change-log": "node scripts/extractLatestChangeLog.js"
@@ -40,9 +40,10 @@
4040
"eslint": "^7.4.0",
4141
"eslint-config-airbnb-base": "^14.2.0",
4242
"eslint-plugin-import": "^2.22.0",
43-
"husky": "3.1.0",
43+
"husky": "^5.1.2",
4444
"install-peers-cli": "^2.2.0",
4545
"lint-staged": "^10.2.11",
46+
"pinst": "^2.1.6",
4647
"prettier": "^2.0.5",
4748
"typescript": "^4.1.3"
4849
},

0 commit comments

Comments
 (0)