Skip to content

Commit b3393a5

Browse files
committed
refactor: update pre-commit hook to run lint, typecheck, and tests
1 parent f1eccb6 commit b3393a5

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
bun run format
1+
bun run format && bun run lint && bun run typecheck && bun run test
22
git update-index --again

src/scaffold/config.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,8 @@ jobs:
232232
- run: bun run test
233233
`;
234234

235-
const tplPreCommitHook = `#!/bin/sh
236-
bun lint && bun format:check
237-
`;
235+
const tplPreCommitHook = `bun run format && bun run lint && bun run typecheck && bun run test
236+
git update-index --again`;
238237

239238
const tplDomainPackageJson = `{
240239
"name": "{{scopeName}}/domain",

0 commit comments

Comments
 (0)