This commit is contained in:
2026-09-22 16:01:25 +01:00
parent 1bf1b651db
commit 1c52617728
16 changed files with 166 additions and 43 deletions
+7 -1
View File
@@ -2,7 +2,8 @@ import { Command } from "commander";
import path from "path";
import grabDirNames from "../../utils/grab-dir-names";
import writeErrorFile from "../../functions/write-error-file";
import { existsSync } from "fs";
import { existsSync, rmSync } from "fs";
const { BUNDLER_CTX_MAP_JSON, SSR_BUNDLER_CTX_MAP_JSON } = grabDirNames();
let retries = 0;
let timeout;
const MAX_RETRIES = 5;
@@ -10,6 +11,11 @@ export default function () {
return new Command("dev")
.description("Run development server")
.action(async () => {
try {
rmSync(SSR_BUNDLER_CTX_MAP_JSON, { recursive: true });
rmSync(BUNDLER_CTX_MAP_JSON, { recursive: true });
}
catch (error) { }
await dev();
});
}