Skip to content

Commit

Permalink
Correct changes for husky...
Browse files Browse the repository at this point in the history
  • Loading branch information
rushby committed Oct 28, 2024
1 parent 6784a46 commit a6081b9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run format && npm run lint
1 change: 1 addition & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run build && npm test
10 changes: 2 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"node": ">= 18"
},
"scripts": {
"prepare": "husky",
"build": "tsc",
"pack-and-install": "npm run build && npm pack && rm -rf node_modules/zkverifyjs && npm install ./$(npm pack | tail -n 1) --no-save",
"bump-version": "npm version $npm_config_level && git add . && git commit -S -m \"chore: bump version to $npm_package_version\" && git push && npm run build",
Expand All @@ -32,13 +31,8 @@
"test:coverage": "jest --coverage",
"test:file:coverage": "node -e 'const path = process.argv[1]; require(\"child_process\").execSync(`jest --coverage --collectCoverageFrom=\"${path}/index.ts\" ${path}/index.test.ts`, { stdio: \"inherit\" });' --",
"lint": "eslint 'src/**/*.ts' --fix --ignore-pattern '**/*.test.ts'",
"format": "prettier --write 'src/**/*.ts'"
},
"husky": {
"hooks": {
"pre-commit": "npm run format && npm run lint",
"pre-push": "npm run build && npm test"
}
"format": "prettier --write 'src/**/*.ts'",
"prepare": "husky"
},
"keywords": [
"blockchain",
Expand Down

0 comments on commit a6081b9

Please sign in to comment.