Skip to content

Commit

Permalink
fix: Setup husky correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
rtfpessoa committed Apr 8, 2021
1 parent 0475545 commit defff26
Show file tree
Hide file tree
Showing 3 changed files with 135 additions and 87 deletions.
3 changes: 2 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
npx lint-staged

9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@
"start:website": "webpack-dev-server --mode development --config webpack.website.ts",
"preversion": "yarn run validate",
"version": "git add -A package.json",
"postinstall": "husky install",
"prepublishOnly": "pinst --disable",
"postpublish": "pinst --enable"
"prepare": "husky install"
},
"main": "./lib/diff2html.js",
"module": "./lib-esm/diff2html.js",
Expand Down Expand Up @@ -120,7 +118,6 @@
"handlebars": "4.7.7",
"handlebars-loader": "1.7.1",
"html-webpack-plugin": "5.3.1",
"husky": "^6.0.0",
"image-webpack-loader": "7.0.1",
"is-ci-cli": "2.2.0",
"jest": "26.6.3",
Expand All @@ -129,7 +126,6 @@
"mini-css-extract-plugin": "1.4.0",
"mkdirp": "1.0.4",
"nopt": "5.0.0",
"pinst": "^2.1.4",
"postcss": "8.2.9",
"postcss-cli": "8.3.1",
"postcss-import": "14.0.1",
Expand All @@ -143,7 +139,8 @@
"url-loader": "4.1.1",
"webpack": "5.30.0",
"webpack-cli": "4.6.0",
"whatwg-fetch": "3.6.2"
"whatwg-fetch": "3.6.2",
"husky": "^6.0.0"
},
"resolutions": {
"lodash": ">=4.17.20",
Expand Down

0 comments on commit defff26

Please sign in to comment.