Skip to content

Commit

Permalink
Merge pull request #1044 from Tony133/chore/update-husky-scripts
Browse files Browse the repository at this point in the history
chore(): update husky script
  • Loading branch information
kamilmysliwiec committed May 23, 2022
2 parents ef730fe + d5bd1f1 commit fc444fd
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 6 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/commit-msg
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit $1
4 changes: 4 additions & 0 deletions .husky/pre-commit
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
16 changes: 16 additions & 0 deletions package-lock.json

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

11 changes: 5 additions & 6 deletions package.json
Expand Up @@ -23,7 +23,8 @@
"test": "npm run clean && NODE_ENV=test jest -w 1 --no-cache --config jest.json",
"test:dev": "NODE_ENV=test npm run -s test -- --watchAll",
"prerelease": "npm run build",
"release": "release-it"
"release": "release-it",
"prepare": "husky install"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -72,11 +73,6 @@
"typescript": "^3.4.5 || ^4.3.5"
},
"schematics": "./dist/collection.json",
"husky": {
"hooks": {
"commit-msg": "commitlint -c .commitlintrc.json -E HUSKY_GIT_PARAMS"
}
},
"nyc": {
"include": [
"src"
Expand All @@ -97,5 +93,8 @@
],
"sourceMap": true,
"instrument": true
},
"lint-staged": {
"**/*.{ts,json}": []
}
}

0 comments on commit fc444fd

Please sign in to comment.