Skip to content

Commit e834b42

Browse files
committed
refactor(husky): updated husky and added pinst
Yarn 2 doesn't support prepare lifecycle script, so husky needs to be installed differently (this doesn't apply to Yarn 1 though)
1 parent 48066ef commit e834b42

File tree

2 files changed

+21
-8
lines changed

2 files changed

+21
-8
lines changed

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
"private": true,
3232
"scripts": {
33-
"postinstall": "lerna run postbootstrap",
33+
"postinstall": "husky install && lerna run postbootstrap",
3434
"setup": "yarn",
3535
"build:uikit": "cd packages/uikit-workshop && npm run build",
3636
"precommit": "pretty-quick --staged",
@@ -39,10 +39,10 @@
3939
"test": "lerna run test",
4040
"clean": "git clean -dfx",
4141
"publish": "npx lerna publish -m \"[skip travis] chore(release): publish %s\"",
42-
"postpublish": "auto release",
42+
"postpublish": "pinst --enable && auto release",
4343
"preview:docs": "cd packages/docs && yarn production",
4444
"preview:hbs": "cd packages/development-edition-engine-handlebars && yarn pl:starterkit && yarn pl:build",
45-
"prepare": "husky install"
45+
"prepublishOnly": "pinst --disable"
4646
},
4747
"nyc": {
4848
"exclude": [
@@ -53,6 +53,7 @@
5353
]
5454
},
5555
"devDependencies": {
56-
"husky": "^5.2.0"
56+
"husky": "^6.0.0",
57+
"pinst": "^2.1.6"
5758
}
5859
}

yarn.lock

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8692,6 +8692,11 @@ fromentries@^1.2.0:
86928692
resolved "https://registry.yarnpkg.com/fromentries/-/fromentries-1.2.0.tgz#e6aa06f240d6267f913cea422075ef88b63e7897"
86938693
integrity sha512-33X7H/wdfO99GdRLLgkjUrD4geAFdq/Uv0kl3HD4da6HDixd2GUg8Mw7dahLCV9r/EARkmtYBB6Tch4EEokFTQ==
86948694

8695+
fromentries@^1.3.2:
8696+
version "1.3.2"
8697+
resolved "https://registry.yarnpkg.com/fromentries/-/fromentries-1.3.2.tgz#e4bca6808816bf8f93b52750f1127f5a6fd86e3a"
8698+
integrity sha512-cHEpEQHUg0f8XdtZCc2ZAhrHzKzT0MrFUTcvx+hfxYu7rGMDc5SKoXFh+n4YigxsHXRzc6OrCshdR1bWH6HHyg==
8699+
86958700
fs-access@^1.0.1:
86968701
version "1.0.1"
86978702
resolved "https://registry.yarnpkg.com/fs-access/-/fs-access-1.0.1.tgz#d6a87f262271cefebec30c553407fb995da8777a"
@@ -10032,10 +10037,10 @@ humanize-ms@^1.2.1:
1003210037
dependencies:
1003310038
ms "^2.0.0"
1003410039

10035-
husky@^5.2.0:
10036-
version "5.2.0"
10037-
resolved "https://registry.yarnpkg.com/husky/-/husky-5.2.0.tgz#fc5e1c2300d34855d47de4753607d00943fc0802"
10038-
integrity sha512-AM8T/auHXRBxlrfPVLKP6jt49GCM2Zz47m8G3FOMsLmTv8Dj/fKVWE0Rh2d4Qrvmy131xEsdQnb3OXRib67PGg==
10040+
husky@^6.0.0:
10041+
version "6.0.0"
10042+
resolved "https://registry.yarnpkg.com/husky/-/husky-6.0.0.tgz#810f11869adf51604c32ea577edbc377d7f9319e"
10043+
integrity sha512-SQS2gDTB7tBN486QSoKPKQItZw97BMOd+Kdb6ghfpBc0yXyzrddI0oDV5MkDAbuB4X2mO3/nj60TRMcYxwzZeQ==
1003910044

1004010045
[email protected], iconv-lite@^0.4.17, iconv-lite@^0.4.19, iconv-lite@^0.4.24, iconv-lite@^0.4.4, iconv-lite@~0.4.13:
1004110046
version "0.4.24"
@@ -14267,6 +14272,13 @@ pinkie@^2.0.0:
1426714272
resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870"
1426814273
integrity sha1-clVrgM+g1IqXToDnckjoDtT3+HA=
1426914274

14275+
pinst@^2.1.6:
14276+
version "2.1.6"
14277+
resolved "https://registry.yarnpkg.com/pinst/-/pinst-2.1.6.tgz#8d968b8ec1dac5dddcfc976c735592dbec58b42c"
14278+
integrity sha512-B4dYmf6nEXg1NpDSB+orYWvKa5Kfmz5KzWC29U59dpVM4S/+xp0ak/JMEsw04UQTNNKps7klu0BUalr343Gt9g==
14279+
dependencies:
14280+
fromentries "^1.3.2"
14281+
1427014282
pirates@^3.0.2:
1427114283
version "3.0.2"
1427214284
resolved "https://registry.yarnpkg.com/pirates/-/pirates-3.0.2.tgz#7e6f85413fd9161ab4e12b539b06010d85954bb9"

0 commit comments

Comments
 (0)