mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 06:20:02 -04:00
fix pre commit hook (part 2)
This commit is contained in:
parent
02fbb25778
commit
e7a5361cd8
1 changed files with 4 additions and 1 deletions
|
@ -73,7 +73,10 @@ fastify.listen({
|
|||
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);
|
||||
|
||||
const watch = spawn("pnpm", ["rspack", "-w"], {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue