Skip to content

Commit dfa67b1

Browse files
committed
chore: Add format on commit
1 parent 20d3a47 commit dfa67b1

2 files changed

Lines changed: 17 additions & 2 deletions

File tree

bun.lock

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

package.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,15 @@
6868
"docs:dev": "zola -r docs serve",
6969
"docs:preview": "vitepress preview docs",
7070
"example": "bun --watch run example.ts",
71-
"example:prod": "NODE_ENV=production bun run example"
71+
"example:prod": "NODE_ENV=production bun run example",
72+
"postinstall": "simple-git-hooks"
7273
},
7374
"dependencies": {
7475
"@standard-schema/spec": "^1.0.0",
7576
"openapi-types": "^12.1.3",
7677
"rou3": "^0.7.12",
77-
"scule": "^1.3.0"
78+
"scule": "^1.3.0",
79+
"simple-git-hooks": "^2.13.1"
7880
},
7981
"devDependencies": {
8082
"@aklinker1/check": "^2.3.0",
@@ -94,6 +96,7 @@
9496
"hono": "^4.11.2",
9597
"jsr": "^0.13.5",
9698
"mermaid": "^11.12.0",
99+
"nano-staged": "^0.9.0",
97100
"oxfmt": "^0.40.0",
98101
"oxlint": "^1.55.0",
99102
"publint": "^0.3.12",
@@ -115,5 +118,11 @@
115118
"optional": true
116119
}
117120
},
121+
"simple-git-hooks": {
122+
"pre-commit": "./node_modules/.bin/nano-staged"
123+
},
124+
"nano-staged": {
125+
"*": "oxfmt --no-error-on-unmatched-pattern"
126+
},
118127
"packageManager": "[email protected]"
119128
}

0 commit comments

Comments
 (0)