Skip to content

Commit

Permalink
Merge pull request #287 from harmony-one/pre-commit-hook
Browse files Browse the repository at this point in the history
Added pre-commit hook
  • Loading branch information
theofandrich authored Sep 18, 2023
2 parents 6deda40 + 17745ba commit feb9dbb
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run lint
tsc --noEmit
18 changes: 18 additions & 0 deletions package-lock.json

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

10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"test": "jest",
"typeorm": "typeorm-ts-node-commonjs -d src/database/datasource.ts",
"lint": "eslint . --ext .ts",
"sentry:sourcemaps": "sentry-cli sourcemaps inject --org hiddenstate --project harmony-ai-bot ./dist && sentry-cli sourcemaps upload --org hiddenstate --project harmony-ai-bot ./dist"
"sentry:sourcemaps": "sentry-cli sourcemaps inject --org hiddenstate --project harmony-ai-bot ./dist && sentry-cli sourcemaps upload --org hiddenstate --project harmony-ai-bot ./dist",
"prepare": "husky install"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -43,6 +44,7 @@
"@babel/core": "^7.22.15",
"@babel/preset-env": "^7.22.15",
"@babel/preset-typescript": "^7.22.15",
"@sentry/cli": "^2.20.7",
"@types/express": "^4.17.14",
"@types/jest": "^29.5.4",
"@types/node": "^18.15.11",
Expand All @@ -60,12 +62,12 @@
"eslint-config-prettier": "^8.8.0",
"eslint-config-standard-with-typescript": "^39.0.0",
"eslint-plugin-compat": "^4.2.0",
"husky": "^8.0.3",
"jest": "^29.6.4",
"prettier": "2.8.7",
"ts-jest": "^29.1.1",
"ts-node-dev": "^2.0.0",
"typescript": "^4.8.4",
"@sentry/cli": "^2.20.7"
"typescript": "^4.8.4"
},
"dependencies": {
"@elastic/elasticsearch": "^8.9.0",
Expand All @@ -84,8 +86,8 @@
"dotenv": "^16.0.3",
"ethers": "^5.7.2",
"express": "^4.18.2",
"form-data": "^4.0.0",
"express-async-handler": "^1.2.0",
"form-data": "^4.0.0",
"gpt-tokenizer": "^2.1.1",
"grammy": "^1.17.1",
"jsqr": "^1.4.0",
Expand Down

0 comments on commit feb9dbb

Please sign in to comment.