Skip to content

Commit

Permalink
refactor: migrate to husky v9
Browse files Browse the repository at this point in the history
  • Loading branch information
pascaliske committed Feb 4, 2024
1 parent dbe2e8b commit 34195d9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
#!/usr/bin/env sh
# -*- coding: utf-8 -*-

# commitlint --env HUSKY_GIT_PARAMS
yarn commitlint --edit $1
4 changes: 2 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
#!/usr/bin/env sh
# -*- coding: utf-8 -*-

# lint-staged
yarn lint-staged
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"private": true,
"scripts": {
"ng": "ng",
"prepare": "husky install",
"prepare": "husky",
"start": "ng serve ngx-sentry-demo",
"build": "ng build ngx-sentry --configuration production",
"postbuild": "cp README.md dist/ngx-sentry/README.md && cp LICENSE.md dist/ngx-sentry/LICENSE.md && cp CHANGELOG.md dist/ngx-sentry/CHANGELOG.md",
Expand Down Expand Up @@ -66,7 +66,7 @@
"@typescript-eslint/parser": "6.20.0",
"codelyzer": "^6.0.2",
"eslint": "^8.43.0",
"husky": "^9.0.0",
"husky": "^9.0.10",
"lint-staged": "^15.0.0",
"ng-packagr": "^16.1.0",
"prettier": "^3.0.0",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4862,10 +4862,10 @@ humanize-ms@^1.2.1:
dependencies:
ms "^2.0.0"

husky@^9.0.0:
version "9.0.7"
resolved "https://registry.yarnpkg.com/husky/-/husky-9.0.7.tgz#047f24ec1b6c681206af714b4217c13ee97fff20"
integrity sha512-vWdusw+y12DUEeoZqW1kplOFqk3tedGV8qlga8/SF6a3lOiWLqGZZQvfWvY0fQYdfiRi/u1DFNpudTSV9l1aCg==
husky@^9.0.10:
version "9.0.10"
resolved "https://registry.yarnpkg.com/husky/-/husky-9.0.10.tgz#ddca8908deb5f244e9286865ebc80b54387672c2"
integrity sha512-TQGNknoiy6bURzIO77pPRu+XHi6zI7T93rX+QnJsoYFf3xdjKOur+IlfqzJGMHIK/wXrLg+GsvMs8Op7vI2jVA==

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

0 comments on commit 34195d9

Please sign in to comment.