1
0

Fix eternal plug:compile watch loop

This commit is contained in:
Zef Hemel 2023-08-15 07:55:36 +02:00
parent 24100afedb
commit 45dfa46908

View File

@ -165,7 +165,9 @@ export async function compileManifests(
const watcher = Deno.watchFs(manifestFiles.map((p) => path.dirname(p))); const watcher = Deno.watchFs(manifestFiles.map((p) => path.dirname(p)));
for await (const event of watcher) { for await (const event of watcher) {
if (event.paths.length > 0) { if (event.paths.length > 0) {
if (event.paths[0].endsWith(".json")) { if (
event.paths[0].endsWith(".json") || event.paths[0].startsWith(dist)
) {
continue; continue;
} }
} }