Skip to content

Commit f68bbbe

Browse files
authored
Merge pull request #494 from layer5io/493-remove-postinstall
fix: reinstall husky and remove postinstall
2 parents 21b2413 + 8b438a4 commit f68bbbe

4 files changed

Lines changed: 8 additions & 17 deletions

File tree

.husky/commit-msg

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
4-
npx commitlint --edit ${1}
1+
npx --no -- commitlint --edit $1

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx lint-staged

package-lock.json

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,19 @@
1414
],
1515
"scripts": {
1616
"build": "NODE_ENV=production tsup",
17-
"commit": "cz",
18-
"commit:sign": "cz -s",
1917
"commitlint": "commitlint --edit",
2018
"coverage": "jest --coverage",
2119
"dev": "NODE_ENV=development tsup",
2220
"format:check": "prettier --check \"**/*.{ts,tsx,md}\" --config ./.prettierrc",
2321
"format:write": "prettier --write \"**/*.{ts,tsx,md}\" --config ./.prettierrc",
24-
"postinstall": "husky install",
2522
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
2623
"lint:fix": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0 --fix",
24+
"prepare": "husky install",
2725
"test": "jest",
2826
"versionup:major": "npm version major",
2927
"versionup:minor": "npm version minor",
3028
"versionup:patch": "npm version patch"
3129
},
32-
"husky": {
33-
"hooks": {
34-
"pre-commit": "lint-staged",
35-
"prepare-commit-msg": "exec < /dev/tty && yarn cz --hook || true"
36-
}
37-
},
3830
"lint-staged": {
3931
"*.{ts,tsx,md}": [
4032
"prettier --write",
@@ -43,7 +35,7 @@
4335
},
4436
"config": {
4537
"commitizen": {
46-
"path": "cz-conventional-changelog"
38+
"path": "./node_modules/cz-conventional-changelog"
4739
}
4840
},
4941
"devDependencies": {

0 commit comments

Comments
 (0)