Skip to content

Commit

Permalink
chore: add husky
Browse files Browse the repository at this point in the history
  • Loading branch information
pengzhanbo committed Aug 2, 2024
1 parent 7b99af8 commit 8a0faea
Show file tree
Hide file tree
Showing 3 changed files with 225 additions and 1 deletion.
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
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,14 @@
"dist"
],
"engines": {
"node": ">=18.20.0"
"node": ">=18.20.0",
"pnpm": ">=9"
},
"scripts": {
"dev": "tsup src --watch",
"build": "tsup",
"lint": "eslint .",
"prepare": "husky",
"prepublishOnly": "pnpm run build",
"release:changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
"release": "bumpp package.json --execute=\"pnpm release:changelog\" --commit --all --push --tag && pnpm publish --access public"
Expand Down Expand Up @@ -119,7 +121,12 @@
"conventional-changelog-cli": "^5.0.0",
"esbuild": "^0.23.0",
"eslint": "^9.8.0",
"husky": "^9.1.1",
"lint-staged": "^15.2.7",
"tsup": "^8.2.3",
"typescript": "^5.5.4"
},
"lint-staged": {
"*": "eslint --fix"
}
}
Loading

0 comments on commit 8a0faea

Please sign in to comment.