Fix eternal plug:compile watch loop

pull/503/head
Zef Hemel 2023-08-15 07:55:36 +02:00
parent 24100afedb
commit 45dfa46908
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}
}