Skip to content

Commit f19aca6

Browse files
authored
build: update to husky@6 (#22404)
* build: update to husky@6 Upgrade husky from 5.2.0 to 6.0.0 * build: install husky in `prepare` script instead of `postinstall` With typicode/husky#890, the recommended way to install husky is in the `prepare` script instead of the `postinstall`. This commit moves the husky installation to the `prepare` script to align with the new recommendation.
1 parent 46eb85c commit f19aca6

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"yarn": ">= 1.0.0"
1414
},
1515
"scripts": {
16-
"postinstall": "husky install && node tools/postinstall/apply-patches.js && ngcc --properties module main --create-ivy-entry-points && node tools/postinstall/update-ngcc-main-fields.js",
16+
"postinstall": "node tools/postinstall/apply-patches.js && ngcc --properties module main --create-ivy-entry-points && node tools/postinstall/update-ngcc-main-fields.js",
1717
"build": "node ./scripts/build-packages-dist.js",
1818
"build-docs-content": "node ./scripts/build-docs-content.js",
1919
"dev-app": "ibazel run //src/dev-app:devserver",
@@ -48,7 +48,8 @@
4848
"integration-tests:size-test": "bazel test //integration/size-test/...",
4949
"check-mdc-tests": "ts-node --project scripts/tsconfig.json scripts/check-mdc-tests.ts",
5050
"check-mdc-exports": "ts-node --project scripts/tsconfig.json scripts/check-mdc-exports.ts",
51-
"check-tools": "yarn tsc --project tools/tsconfig-ci.json"
51+
"check-tools": "yarn tsc --project tools/tsconfig-ci.json",
52+
"prepare": "husky install"
5253
},
5354
"version": "12.1.0-next.0",
5455
"dependencies": {
@@ -173,7 +174,7 @@
173174
"gulp-cli": "^2.3.0",
174175
"gulp-dart-sass": "^1.0.2",
175176
"highlight.js": "^10.4.0",
176-
"husky": "5.2.0",
177+
"husky": "6.0.0",
177178
"inquirer": "^8.0.0",
178179
"jasmine": "^3.6.0",
179180
"jasmine-core": "^3.6.0",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6939,10 +6939,10 @@ https-proxy-agent@^4.0.0:
69396939
agent-base "5"
69406940
debug "4"
69416941

6942-
husky@5.2.0:
6943-
version "5.2.0"
6944-
resolved "https://registry.yarnpkg.com/husky/-/husky-5.2.0.tgz#fc5e1c2300d34855d47de4753607d00943fc0802"
6945-
integrity sha512-AM8T/auHXRBxlrfPVLKP6jt49GCM2Zz47m8G3FOMsLmTv8Dj/fKVWE0Rh2d4Qrvmy131xEsdQnb3OXRib67PGg==
6942+
husky@6.0.0:
6943+
version "6.0.0"
6944+
resolved "https://registry.yarnpkg.com/husky/-/husky-6.0.0.tgz#810f11869adf51604c32ea577edbc377d7f9319e"
6945+
integrity sha512-SQS2gDTB7tBN486QSoKPKQItZw97BMOd+Kdb6ghfpBc0yXyzrddI0oDV5MkDAbuB4X2mO3/nj60TRMcYxwzZeQ==
69466946

69476947
[email protected], iconv-lite@^0.4.24, iconv-lite@^0.4.4, iconv-lite@~0.4.11:
69486948
version "0.4.24"

0 commit comments

Comments
 (0)