Skip to content

Commit

Permalink
fix: recursive deno cache
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNoim committed Jan 8, 2023
1 parent b754a5f commit 52a9ddf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions reactive_home/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ async function executeScripts(abort: AbortSignal) {
continue;
}

if (path.path.includes(".deno")) {
continue;
}

const fileName = basename(path.path);

if (!/script\..+\.ts/gm.test(fileName)) {
Expand Down Expand Up @@ -80,6 +84,10 @@ for await (const event of watcher) {
continue;
}

if (event.paths.some((value) => value.includes(".deno"))) {
continue;
}

console.info(
`Restart scripts because ${event.paths} ${
event.kind === "modify"
Expand Down

0 comments on commit 52a9ddf

Please sign in to comment.