ChatCrawlersearch across public Telegram Open the app
T

TypeScript Ecosystem

сообщение · 2026-07-27 18:15 UTC
D
fs.watch("./", { recursive: true, encoding: "utf-8" }, (eventType, fileName)=>{ if(eventType === "change"){ console.log("[RESTART] on file changes -", fileName); exec("node ./src/index.ts", (error, stdout, stderr)=>{ console.log(error); }); } }); I was trying to build a Nodemon clone, and I have written the logic above to try restart the program when there is some change in the file contents. But the exec() part does not work. What am I doing wrong here?

Вся лента · оригинал в Telegram

Open in Telegram Каталог площадок Искать в ChatCrawler

A snapshot of an open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog