From 45dfa46908f4e990f4904d793950ca1b5d88138c Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Tue, 15 Aug 2023 07:55:36 +0200 Subject: [PATCH] Fix eternal plug:compile watch loop --- plugos/compile.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugos/compile.ts b/plugos/compile.ts index 74774df..6bd90a3 100644 --- a/plugos/compile.ts +++ b/plugos/compile.ts @@ -165,7 +165,9 @@ export async function compileManifests( const watcher = Deno.watchFs(manifestFiles.map((p) => path.dirname(p))); for await (const event of watcher) { if (event.paths.length > 0) { - if (event.paths[0].endsWith(".json")) { + if ( + event.paths[0].endsWith(".json") || event.paths[0].startsWith(dist) + ) { continue; } }