Skip to content

Commit

Permalink
feat: lefthook install at postinstall
Browse files Browse the repository at this point in the history
  • Loading branch information
ndxbn committed Oct 29, 2024
1 parent afca354 commit 3d0c8a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"typescript": "5.6.3"
},
"scripts": {
"start": "bun src/main.ts",
"postinstall": "bun scripts/postinstall.ts",
"dev": "bun src/main.ts",
"lint": "biome check",
"fmt": "biome check --write --unsafe"
}
Expand Down
3 changes: 3 additions & 0 deletions scripts/postinstall.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { $ } from "bun";

await Promise.all([$`bunx lefthook install`]);

0 comments on commit 3d0c8a1

Please sign in to comment.