update precommit hook

This commit is contained in:
Percs 2024-07-19 16:46:47 -05:00
parent 2c415265ea
commit 9a893dedf7

View file

@ -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"], {