This commit is contained in:
Benjamin Toby
2025-02-03 16:23:23 +01:00
parent 1e57cdbc1d
commit 0375c02931
5 changed files with 10 additions and 5 deletions
+4 -1
View File
@@ -4,6 +4,7 @@ import colors from "./console-colors";
import preflightFn from "./preflight";
import run from "./run";
import killChild from "./kill-child";
import chokidar from "chokidar";
let childProcess: ChildProcess | null = null;
@@ -58,7 +59,9 @@ export default function startProcess({
console.log("Watching", redeploy_file);
fs.watchFile(redeploy_file, { interval: 100 }, (curr, prev) => {
const watcher = chokidar.watch(redeploy_file, { ignoreInitial: true });
watcher.on("change", (path, stats) => {
clearTimeout(timeout);
timeout = setTimeout(() => {