Skip to content

Commit ea62d2d

Browse files
damingerdaiannieyw
authored andcommitted
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. (cherry picked from commit f19aca6)
1 parent 6411133 commit ea62d2d

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.0.0-rc.1",
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
@@ -6991,10 +6991,10 @@ https-proxy-agent@^4.0.0:
69916991
agent-base "5"
69926992
debug "4"
69936993

6994-
husky@5.2.0:
6995-
version "5.2.0"
6996-
resolved "https://registry.yarnpkg.com/husky/-/husky-5.2.0.tgz#fc5e1c2300d34855d47de4753607d00943fc0802"
6997-
integrity sha512-AM8T/auHXRBxlrfPVLKP6jt49GCM2Zz47m8G3FOMsLmTv8Dj/fKVWE0Rh2d4Qrvmy131xEsdQnb3OXRib67PGg==
6994+
husky@6.0.0:
6995+
version "6.0.0"
6996+
resolved "https://registry.yarnpkg.com/husky/-/husky-6.0.0.tgz#810f11869adf51604c32ea577edbc377d7f9319e"
6997+
integrity sha512-SQS2gDTB7tBN486QSoKPKQItZw97BMOd+Kdb6ghfpBc0yXyzrddI0oDV5MkDAbuB4X2mO3/nj60TRMcYxwzZeQ==
69986998

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

0 commit comments

Comments
 (0)