Skip to content

Commit

Permalink
refactor: update husky and lint-staged to latest (#534)
Browse files Browse the repository at this point in the history
  • Loading branch information
devjiwonchoi authored May 16, 2024
1 parent e344421 commit f8c3fef
Show file tree
Hide file tree
Showing 6 changed files with 124 additions and 176 deletions.
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

pnpm lint-staged
4 changes: 0 additions & 4 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
dist/
test/compile/
test/**/fixtures/

pnpm-lock.yaml
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"tsx": "node -r @swc-node/register",
"build": "node -r @swc-node/register ./src/bin/index.ts --runtime node",
"format": "prettier --write .",
"prepare": "husky install"
"prepare": "husky"
},
"type": "commonjs",
"keywords": [
Expand Down Expand Up @@ -87,16 +87,16 @@
"@types/jest": "29.0.0",
"@types/node": "^20.4.1",
"bunchee": "link:./",
"husky": "^8.0.3",
"husky": "^9.0.11",
"jest": "29.0.1",
"lint-staged": "^13.2.3",
"lint-staged": "^15.2.2",
"picocolors": "^1.0.0",
"prettier": "^3.0.0",
"react": "^18.2.0",
"typescript": "^5.3.2"
},
"lint-staged": {
"*.{ts,tsx,js,jsx,md,json,yml}": "prettier --write"
"*.{js,jsx,ts,tsx,md,json,yml,yaml}": "prettier --write"
},
"jest": {
"moduleDirectories": [
Expand Down
Loading

0 comments on commit f8c3fef

Please sign in to comment.