Skip to content

Commit

Permalink
Update husky
Browse files Browse the repository at this point in the history
  • Loading branch information
mmgoodnow committed Dec 28, 2021
1 parent 60d526c commit 595a62a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 126 deletions.
6 changes: 6 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run build
npx --no-install lint-staged

130 changes: 11 additions & 119 deletions package-lock.json

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

9 changes: 2 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"test": "true",
"build": "tsc",
"release": "np",
"prepare": "rimraf dist && npm run build"
"prepare": "rimraf dist && npm run build && husky install"
},
"bin": {
"cross-seed": "dist/src/cmd.js"
Expand Down Expand Up @@ -42,7 +42,7 @@
"@typescript-eslint/eslint-plugin": "^4.16.1",
"@typescript-eslint/parser": "^4.16.1",
"eslint": "^7.11.0",
"husky": "^4.3.0",
"husky": "^7.0.0",
"lint-staged": "^10.4.0",
"np": "*",
"prettier": "^2.0.5",
Expand All @@ -53,11 +53,6 @@
"useTabs": true,
"proseWrap": "always"
},
"husky": {
"hooks": {
"pre-commit": "npm run build && lint-staged"
}
},
"lint-staged": {
"*.{js,ts}": "eslint --cache",
"*.{js,json,ts,css,md}": "prettier --write"
Expand Down

0 comments on commit 595a62a

Please sign in to comment.