Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

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

npm run lint && npm test
16 changes: 8 additions & 8 deletions package-lock.json

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

12 changes: 3 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,20 @@
"build": "tsc",
"prewatch": "rimraf dist",
"watch": "tsc -w",
"test": "snyk test && echo \"No test specified\"",
"test": "echo \"No test specified\"",
"lint": "tslint --project tsconfig.json",
"lint:fix": "tslint --fix --project tsconfig.json",
"commit": "git-cz",
"release": "semantic-release --no-ci",
"release:dry-run": "semantic-release --no-ci --dry-run",
"snyk-protect": "snyk protect",
"prepare": "npm run snyk-protect && npm run build"
"prepare": "npm run snyk-protect && npm run build && husky install"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "npm run lint && npm test"
}
},
"contributors": [
"Matt Strom <matt@mattstrom.com>"
],
Expand Down Expand Up @@ -80,7 +74,7 @@
"@types/glob-to-regexp": "^0.4.0",
"commitizen": "^4.2.5",
"cz-conventional-changelog": "^3.3.0",
"husky": "^7.0.4",
"husky": "^8.0.0",
"rimraf": "^3.0.2",
"semantic-release": "^19.0.5",
"snyk": "^1.1011.0",
Expand Down