Skip to content

Commit

Permalink
Merge pull request layer5io#494 from layer5io/493-remove-postinstall
Browse files Browse the repository at this point in the history
fix: reinstall husky and remove postinstall
  • Loading branch information
nebula-aac authored Feb 7, 2024
2 parents 21b2413 + 8b438a4 commit f68bbbe
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 17 deletions.
5 changes: 1 addition & 4 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx commitlint --edit ${1}
npx --no -- commitlint --edit $1
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
7 changes: 4 additions & 3 deletions package-lock.json

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

12 changes: 2 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,19 @@
],
"scripts": {
"build": "NODE_ENV=production tsup",
"commit": "cz",
"commit:sign": "cz -s",
"commitlint": "commitlint --edit",
"coverage": "jest --coverage",
"dev": "NODE_ENV=development tsup",
"format:check": "prettier --check \"**/*.{ts,tsx,md}\" --config ./.prettierrc",
"format:write": "prettier --write \"**/*.{ts,tsx,md}\" --config ./.prettierrc",
"postinstall": "husky install",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"lint:fix": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0 --fix",
"prepare": "husky install",
"test": "jest",
"versionup:major": "npm version major",
"versionup:minor": "npm version minor",
"versionup:patch": "npm version patch"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"prepare-commit-msg": "exec < /dev/tty && yarn cz --hook || true"
}
},
"lint-staged": {
"*.{ts,tsx,md}": [
"prettier --write",
Expand All @@ -43,7 +35,7 @@
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
"path": "./node_modules/cz-conventional-changelog"
}
},
"devDependencies": {
Expand Down

0 comments on commit f68bbbe

Please sign in to comment.