Skip to content

Commit

Permalink
build: prepare script instead of postinall
Browse files Browse the repository at this point in the history
husky suggest use prepare script instead of postinall
  • Loading branch information
damingerdai committed Apr 2, 2021
1 parent f72ba0a commit 7026494
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Expand Up @@ -22,7 +22,7 @@
"// 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",
"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",
Expand All @@ -36,7 +36,8 @@
"ts-circular-deps:check": "yarn -s ng-dev ts-circular-deps check --config ./packages/circular-deps-test.conf.js",
"ts-circular-deps:approve": "yarn -s ng-dev ts-circular-deps approve --config ./packages/circular-deps-test.conf.js",
"ng-dev": "node dev-infra/ng-dev",
"ng-dev:dev": "ts-node --transpile-only -- dev-infra/cli.ts"
"ng-dev:dev": "ts-node --transpile-only -- dev-infra/cli.ts",
"prepare": "husky install"
},
"// 1": "dependencies are used locally and by bazel",
"dependencies": {
Expand Down

0 comments on commit 7026494

Please sign in to comment.