diff --git a/server.js b/server.js index 63ecc11..545a2ee 100644 --- a/server.js +++ b/server.js @@ -73,7 +73,7 @@ fastify.listen({ host: "0.0.0.0", }); -writeFileSync(".git/hooks/pre-commit", "pnpm prettier . -w"); +writeFileSync(".git/hooks/pre-commit", "pnpm prettier . -w\ngit add -A"); chmodSync(".git/hooks/pre-commit", 0o755); const watch = spawn("pnpm", ["rspack", "-w"], {