Skip to content

Commit

Permalink
build: update to husky@6
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
trik committed Jun 10, 2021
1 parent 227c748 commit 3aa678b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions package.json
Expand Up @@ -13,7 +13,7 @@
"yarn": ">= 1.0.0"
},
"scripts": {
"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 && node tools/postinstall/patch-gic-ionic-package.js",
"postinstall": "node tools/postinstall/apply-patches.js && ngcc --properties module main --create-ivy-entry-points && node tools/postinstall/update-ngcc-main-fields.js && node tools/postinstall/patch-gic-ionic-package.js",
"build": "node ./scripts/build-packages-dist.js",
"build-docs-content": "node ./scripts/build-docs-content.js",
"dev-app": "ibazel run //src/dev-app:devserver",
Expand Down Expand Up @@ -45,7 +45,8 @@
"integration-tests": "bazel test --test_tag_filters=-view-engine-only --build_tests_only -- //integration/... -//integration/size-test/...",
"integration-tests:view-engine": "bazel test --test_tag_filters=view-engine-only --build_tests_only -- //integration/... -//integration/size-test/...",
"integration-tests:size-test": "bazel test //integration/size-test/...",
"check-tools": "yarn tsc --project tools/tsconfig-ci.json"
"check-tools": "yarn tsc --project tools/tsconfig-ci.json",
"prepare": "husky install"
},
"version": "12.0.0-next.3",
"dependencies": {
Expand Down Expand Up @@ -145,7 +146,7 @@
"gulp-cli": "^2.3.0",
"gulp-dart-sass": "^1.0.2",
"highlight.js": "^10.4.0",
"husky": "5.2.0",
"husky": "6.0.0",
"inquirer": "^8.0.0",
"jasmine": "^3.6.0",
"jasmine-core": "^3.6.0",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -6427,10 +6427,10 @@ https-proxy-agent@^4.0.0:
agent-base "5"
debug "4"

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

iconv-lite@0.4.24, iconv-lite@^0.4.24, iconv-lite@~0.4.11:
version "0.4.24"
Expand Down

0 comments on commit 3aa678b

Please sign in to comment.