Updates
This commit is contained in:
+4
-1
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user