diff options
Diffstat (limited to 'nuldoc-src/commands/serve.ts')
| -rw-r--r-- | nuldoc-src/commands/serve.ts | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/nuldoc-src/commands/serve.ts b/nuldoc-src/commands/serve.ts index ffb2020..aa5221d 100644 --- a/nuldoc-src/commands/serve.ts +++ b/nuldoc-src/commands/serve.ts @@ -9,10 +9,13 @@ export function runServeCommand(config: Config) { serve(async (req) => { const pathname = new URL(req.url).pathname; if (!pathname.endsWith("css") && !pathname.endsWith("svg")) { - const p = Deno.run({ - cmd: ["./nuldoc", "build"], - }); - await p.status(); + const command = new Deno.Command( + join(Deno.cwd(), "nuldoc"), + { + args: ["build"], + }, + ); + await command.output(); console.log("rebuild"); } const res = await serveDir(req, { |
