Skip to content

Commit 7ea8250

Browse files
committed
fix(cli): ignore generated caches in project watcher
1 parent 89e970f commit 7ea8250

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎packages/cli/src/server/fileWatcher.test.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ describe("shouldWatchProjectFile", () => {
2323
expect(shouldWatchProjectFile("renders/output.mp4")).toBe(false);
2424
expect(shouldWatchProjectFile("dist/index.html")).toBe(false);
2525
expect(shouldWatchProjectFile(".hyperframes/cache.json")).toBe(false);
26+
expect(shouldWatchProjectFile(".transcode-cache/proxy.mp4")).toBe(false);
27+
expect(shouldWatchProjectFile(".thumbnails/frame.jpg")).toBe(false);
2628
});
2729
});
2830

‎packages/cli/src/server/fileWatcher.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ const WATCHER_EXCLUDED_DIRS = new Set([
1313
".git",
1414
".hyperframes",
1515
".next",
16+
".thumbnails",
17+
".transcode-cache",
1618
".vite",
1719
"build",
1820
"coverage",

0 commit comments

Comments
 (0)