Skip to content

Commit bb3fc75

Browse files
committed
Add precommit hook
1 parent 0f18e7c commit bb3fc75

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.husky/pre-commit

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

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
66
"deploy": "wrangler deploy",
77
"dev": "wrangler dev",
88
"start": "wrangler dev",
9-
"cf-typegen": "wrangler types"
9+
"cf-typegen": "wrangler types",
10+
"prepare": "husky"
1011
},
1112
"devDependencies": {
1213
"@cloudflare/workers-types": "^4.20241216.0",
1314
"@types/pg": "^8.11.10",
1415
"husky": "^9.1.7",
15-
"lint-staged": "^15.2.11",
16-
"prettier": "3.4.2",
16+
"lint-staged": "^15.2.11",
17+
"prettier": "3.4.2",
1718
"typescript": "^5.7.2",
1819
"wrangler": "^3.96.0"
1920
},
@@ -28,6 +29,6 @@
2829
"pg": "^8.13.1"
2930
},
3031
"lint-staged": {
31-
"*.{ts,js}": "prettier --write --ignore-unknown"
32-
}
33-
}
32+
"*.{ts,js}": "prettier --write --ignore-unknown"
33+
}
34+
}

0 commit comments

Comments
 (0)