Fix eternal plug:compile watch loop
This commit is contained in:
parent
24100afedb
commit
45dfa46908
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user