Skip to content

Commit

Permalink
Fix husky pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharaal committed Sep 12, 2021
1 parent f6f051b commit 4480628
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run lint && npm run test:unit && npm run test:integration
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"scripts": {
"lint": "standard",
"lint:fix": "standard --fix",
"prepare": "husky install",
"test": "npm run test:unit && npm run test:integration && npm run test:package",
"test:integration": "node ./bin/migrate && mocha --require intelli-espower-loader --recursive './test/integration/**/*.js'",
"test:package": "npm pack && tar -xzf *.tgz -C ./ && cp .env.example package/.env.example && cp .env package/.env && cp -r test package/test && cd package && mkdir -p migrations && npm i && npm run test:unit && npm run test:integration",
Expand Down Expand Up @@ -65,11 +66,6 @@
"README.md",
"SECURITY.md"
],
"husky": {
"hooks": {
"pre-commit": "npm run lint && npm run test:unit"
}
},
"nyc": {
"include": "index.js",
"all": true,
Expand Down

0 comments on commit 4480628

Please sign in to comment.