fix pre commit hook (part 2)

This commit is contained in:
Percs 2024-07-19 19:49:20 -05:00
parent 02fbb25778
commit e7a5361cd8

View file

@ -73,7 +73,10 @@ fastify.listen({
host: "0.0.0.0", host: "0.0.0.0",
}); });
writeFileSync(".git/hooks/pre-commit", "pnpm prettier . -w\ngit add -A"); writeFileSync(
".git/hooks/pre-commit",
"pnpm prettier . -w\ngit update-index --again"
);
chmodSync(".git/hooks/pre-commit", 0o755); chmodSync(".git/hooks/pre-commit", 0o755);
const watch = spawn("pnpm", ["rspack", "-w"], { const watch = spawn("pnpm", ["rspack", "-w"], {