Fix dates and finish Tiny Accident
This commit is contained in:
parent
808f565e59
commit
b92f53a9c2
6 changed files with 86 additions and 71 deletions
|
|
@ -54,7 +54,7 @@ async function exportStory(slug: string, options: { outputDir: string }) {
|
|||
await fetchRetry(healthcheckURL, { retries: 5, retryDelay: 2000 });
|
||||
} catch {
|
||||
console.error("Astro dev server didn't respond in time!");
|
||||
devServerProcess && devServerProcess.kill();
|
||||
devServerProcess && devServerProcess.kill("SIGINT");
|
||||
devServerProcess = null;
|
||||
process.exit(1);
|
||||
}
|
||||
|
|
@ -97,7 +97,9 @@ async function exportStory(slug: string, options: { outputDir: string }) {
|
|||
} finally {
|
||||
if (devServerProcess) {
|
||||
console.log("Shutting down the Astro development server...");
|
||||
devServerProcess.kill();
|
||||
if (!devServerProcess.kill("SIGINT")) {
|
||||
console.error("Unable to shut down Astro dev server!");
|
||||
}
|
||||
devServerProcess = null;
|
||||
}
|
||||
}
|
||||
|
|
@ -115,7 +117,7 @@ async function exportStory(slug: string, options: { outputDir: string }) {
|
|||
rtfText.replaceAll(rtfStyles["Preformatted Text"], rtfStyles["Normal"]),
|
||||
);
|
||||
console.log("Success!");
|
||||
return;
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
await program
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue