From acebe92bad22677ede405a5cb56c8dec00fd742d Mon Sep 17 00:00:00 2001 From: Arthur Ming Date: Sat, 3 Apr 2021 07:13:10 +0800 Subject: [PATCH] build: install husky in `prepare` script instead of `postinstall` (#41405) 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. PR Close #41405 --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 73ec0cf1f792c..0909074cbba1d 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,8 @@ "// 3": "yarn ng-dev --help", "/ ": "", "preinstall": "node tools/yarn/check-yarn.js", - "postinstall": "husky install && node scripts/webdriver-manager-update.js && node --preserve-symlinks --preserve-symlinks-main ./tools/postinstall-patches.js", + "postinstall": "node scripts/webdriver-manager-update.js && node --preserve-symlinks --preserve-symlinks-main ./tools/postinstall-patches.js", + "prepare": "husky install", "test-ivy-aot": "bazelisk test --config=ivy --build_tag_filters=-no-ivy-aot,-fixme-ivy-aot --test_tag_filters=-no-ivy-aot,-fixme-ivy-aot", "test-non-ivy": "bazelisk test --build_tag_filters=-ivy-only --test_tag_filters=-ivy-only", "test-fixme-ivy-aot": "bazelisk test --config=ivy --build_tag_filters=-no-ivy-aot --test_tag_filters=-no-ivy-aot",