diff --git a/scripts/generate-resume-pdf.ts b/scripts/generate-resume-pdf.ts index 0b63914..74ed715 100644 --- a/scripts/generate-resume-pdf.ts +++ b/scripts/generate-resume-pdf.ts @@ -19,6 +19,7 @@ async function startDevServer(): Promise<{ url: string; stop: () => Promise((resolve, reject) => { @@ -47,13 +48,23 @@ async function startDevServer(): Promise<{ url: string; stop: () => Promise { + try { + process.kill(-proc.pid!, signal); + } catch { + // group may already be gone + } + }; + return { url, stop: () => new Promise((resolve) => { proc.once("exit", () => resolve()); - proc.kill("SIGTERM"); - setTimeout(() => proc.kill("SIGKILL"), 5000).unref(); + killGroup("SIGTERM"); + proc.stdout?.destroy(); + proc.stderr?.destroy(); + setTimeout(() => killGroup("SIGKILL"), 5000).unref(); }), }; } diff --git a/src/assets/resume.pdf b/src/assets/resume.pdf index 0d4dac5..32deae1 100644 Binary files a/src/assets/resume.pdf and b/src/assets/resume.pdf differ