Skip to content

Commit

Permalink
Use husky for pre-commit checks
Browse files Browse the repository at this point in the history
  • Loading branch information
davidparsson committed Aug 1, 2024
1 parent d3da651 commit 296ba28
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
npm run check
npm run build
npm run test
22 changes: 22 additions & 0 deletions package-lock.json

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

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"test": "jest",
"release": "release-it",
"build": "rollup --configPlugin @rollup/plugin-typescript -c rollup.config.ts",
"lint": "tslint -c tslint.json src/**/*.ts"
"lint": "tslint -c tslint.json src/**/*.ts",
"prepare": "husky"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -43,6 +44,7 @@
"@types/lodash": "^4.17.0",
"@types/node": "^20.12.7",
"@types/rimraf": "^4.0.5",
"husky": "^9.1.4",
"jest": "^29.7.0",
"prettier": "^3.0.3",
"release-it": "^16.2.1",
Expand Down

0 comments on commit 296ba28

Please sign in to comment.