Skip to content

Commit

Permalink
Update dependency husky to v6 (#1062)
Browse files Browse the repository at this point in the history
* Update dependency husky to v6

* Fix version

Co-authored-by: Marcel Ring (windm) <[email protected]>
  • Loading branch information
Wallabeng and Marcel Ring (windm) authored Apr 29, 2021
1 parent 58a9aa2 commit ad7df5c
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 233 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run format:fix
npm run license:fix
249 changes: 23 additions & 226 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 3 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"lint:fix": "eslint --fix \"src/clr-addons/**/*.ts\" \"src/dev/**/*.ts\"",
"lint:styles:fix": "stylelint --fix \"src/**/*.scss\" \"src/**/*.css\"",
"publish": "npm publish dist/clr-addons --access public",
"postinstall": "ngcc --properties es2015 browser module main --first-only --create-ivy-entry-points"
"postinstall": "ngcc --properties es2015 browser module main --first-only --create-ivy-entry-points",
"prepare": "husky install"
},
"dependencies": {
"@angular/animations": "11.2.12",
Expand Down Expand Up @@ -73,7 +74,7 @@
"eslint": "7.25.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-jasmine": "4.1.2",
"husky": "4.3.8",
"husky": "6.0.0",
"jasmine-core": "3.7.1",
"jasmine-spec-reporter": "7.0.0",
"karma": "6.3.2",
Expand Down Expand Up @@ -106,11 +107,6 @@
"node": ">=10.13.0 <15.0.0",
"npm": ">=5.0.0"
},
"husky": {
"hooks": {
"pre-commit": "npm run format:fix && npm run license:fix"
}
},
"postcss": {
"plugins": {
"autoprefixer": {}
Expand Down

0 comments on commit ad7df5c

Please sign in to comment.