diff --git a/server.js b/server.js index 1f41dc2..a928a8d 100644 --- a/server.js +++ b/server.js @@ -12,6 +12,7 @@ import { baremuxPath } from "@mercuryworkshop/bare-mux/node"; import { epoxyPath } from "@mercuryworkshop/epoxy-transport"; import { libcurlPath } from "@mercuryworkshop/libcurl-transport"; import { bareModulePath } from "@mercuryworkshop/bare-as-module3"; +import { writeFileSync } from "fs"; const bare = createBareServer("/bare/", { logErrors: true, @@ -71,6 +72,11 @@ fastify.listen({ host: "0.0.0.0", }); + +writeFileSync(".git/hooks/pre-commit", "pnpm prettier . -w"); + + + const watch = spawn("pnpm", ["rspack", "-w"], { detached: true, cwd: process.cwd(),