Skip to content

Commit 9f58f0b

Browse files
cexbrayatalan-agius4
authored andcommitted
refactor: simplify husky setup
husky v9 simplified its setup, see `How to migrate` in https://github.com/typicode/husky/releases/tag/v9.0.1
1 parent 711dbe4 commit 9f58f0b

File tree

4 files changed

+1
-10
lines changed

4 files changed

+1
-10
lines changed

.husky/commit-msg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname $0)/_/husky.sh"
3-
41
yarn -s ng-dev commit-message pre-commit-validate --file $1;

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname $0)/_/husky.sh"
3-
41
yarn -s ng-dev format staged;

.husky/prepare-commit-msg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname $0)/_/husky.sh"
3-
41
yarn -s ng-dev commit-message restore-commit-message-draft $1 $2;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"ng-dev": "ts-node --esm --project .ng-dev/tsconfig.json --transpile-only node_modules/@angular/ng-dev/bundles/cli.mjs",
2626
"templates": "node ./bin/devkit-admin templates",
2727
"validate": "node ./bin/devkit-admin validate",
28-
"postinstall": "yarn webdriver-update && yarn husky install && patch-package --patch-dir tools/postinstall/patches",
28+
"postinstall": "yarn webdriver-update && yarn husky && patch-package --patch-dir tools/postinstall/patches",
2929
"//webdriver-update-README": "ChromeDriver version must match Puppeteer Chromium version, see https://github.com/GoogleChrome/puppeteer/releases http://chromedriver.chromium.org/downloads",
3030
"webdriver-update": "webdriver-manager update --standalone false --gecko false --versions.chrome 106.0.5249.21",
3131
"public-api:check": "node goldens/public-api/manage.js test",

0 commit comments

Comments
 (0)