Skip to content
This repository was archived by the owner on May 15, 2021. It is now read-only.

Commit 7400780

Browse files
chore: update husky settings
1 parent 904d7ff commit 7400780

File tree

6 files changed

+31
-12
lines changed

6 files changed

+31
-12
lines changed

Diff for: .husky/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

Diff for: .husky/commit-msg

+4
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 $1

Diff for: .husky/pre-commit

+4
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

Diff for: .huskyrc

-6
This file was deleted.

Diff for: package.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@
3131
"lint:fix": "eslint --fix 'src/**/*.ts' '__tests__/**/*.ts'",
3232
"release": "yarn release-ga --test",
3333
"test": "yarn lint && yarn cover",
34-
"update": "npx npm-check-updates -u && yarn install && yarn upgrade && yarn audit"
34+
"update": "npx npm-check-updates -u && yarn install && yarn upgrade && yarn audit",
35+
"postinstall": "husky install",
36+
"prepublishOnly": "pinst --disable",
37+
"postpublish": "pinst --enable"
3538
},
3639
"dependencies": {
3740
"@actions/core": "^1.2.6",
@@ -53,11 +56,12 @@
5356
"@typescript-eslint/eslint-plugin": "^4.15.1",
5457
"@typescript-eslint/parser": "^4.15.1",
5558
"eslint": "^7.20.0",
56-
"husky": "^5.0.9",
59+
"husky": "^5.1.1",
5760
"jest": "^26.6.3",
5861
"jest-circus": "^26.6.3",
5962
"lint-staged": "^10.5.4",
6063
"nock": "^13.0.7",
64+
"pinst": "^2.1.6",
6165
"ts-jest": "^26.5.1",
6266
"typescript": "^4.1.5"
6367
},

Diff for: yarn.lock

+16-4
Original file line numberDiff line numberDiff line change
@@ -2227,6 +2227,11 @@ fragment-cache@^0.2.1:
22272227
dependencies:
22282228
map-cache "^0.2.2"
22292229

2230+
fromentries@^1.3.2:
2231+
version "1.3.2"
2232+
resolved "https://registry.yarnpkg.com/fromentries/-/fromentries-1.3.2.tgz#e4bca6808816bf8f93b52750f1127f5a6fd86e3a"
2233+
integrity sha512-cHEpEQHUg0f8XdtZCc2ZAhrHzKzT0MrFUTcvx+hfxYu7rGMDc5SKoXFh+n4YigxsHXRzc6OrCshdR1bWH6HHyg==
2234+
22302235
fs-extra@^9.0.0:
22312236
version "9.1.0"
22322237
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.1.0.tgz#5954460c764a8da2094ba3554bf839e6b9a7c86d"
@@ -2483,10 +2488,10 @@ human-signals@^1.1.1:
24832488
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-1.1.1.tgz#c5b1cd14f50aeae09ab6c59fe63ba3395fe4dfa3"
24842489
integrity sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==
24852490

2486-
husky@^5.0.9:
2487-
version "5.0.9"
2488-
resolved "https://registry.yarnpkg.com/husky/-/husky-5.0.9.tgz#6d38706643d66ed395bcd4ee952d02e3f15eb3a3"
2489-
integrity sha512-0SjcaY21a+IRdx7p7r/X33Vc09UR2m8SbP8yfkhUX2/jAmwcz+GR7i9jXkp2pP3GfX23JhMkVP6SWwXB18uXtg==
2491+
husky@5:
2492+
version "5.1.1"
2493+
resolved "https://registry.yarnpkg.com/husky/-/husky-5.1.1.tgz#8678953fd8deb86f387cbf1ad50bb2f7f96e83f2"
2494+
integrity sha512-80LZ736V0Nr4/st0c2COYaMbEQhHNmAbLMN8J/kLk7/mo0QdUkUGNDjv/7jVkhug377Wh8wfbWyaVXEJ/h2B/Q==
24902495

24912496
24922497
version "0.4.24"
@@ -3945,6 +3950,13 @@ picomatch@^2.0.4, picomatch@^2.0.5, picomatch@^2.2.1:
39453950
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.2.2.tgz#21f333e9b6b8eaff02468f5146ea406d345f4dad"
39463951
integrity sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==
39473952

3953+
pinst@^2.1.6:
3954+
version "2.1.6"
3955+
resolved "https://registry.yarnpkg.com/pinst/-/pinst-2.1.6.tgz#8d968b8ec1dac5dddcfc976c735592dbec58b42c"
3956+
integrity sha512-B4dYmf6nEXg1NpDSB+orYWvKa5Kfmz5KzWC29U59dpVM4S/+xp0ak/JMEsw04UQTNNKps7klu0BUalr343Gt9g==
3957+
dependencies:
3958+
fromentries "^1.3.2"
3959+
39483960
pirates@^4.0.1:
39493961
version "4.0.1"
39503962
resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.1.tgz#643a92caf894566f91b2b986d2c66950a8e2fb87"

0 commit comments

Comments
 (0)