Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/cli/src/server/fileWatcher.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@ describe("shouldWatchProjectFile", () => {
expect(shouldWatchProjectFile("Dockerfile")).toBe(true);
});

it("skips generated and dependency directories excluded from signatures", () => {
it("skips generated and dependency directories", () => {
expect(shouldWatchProjectFile("node_modules/pkg/index.js")).toBe(false);
expect(shouldWatchProjectFile("renders/output.mp4")).toBe(false);
expect(shouldWatchProjectFile("dist/index.html")).toBe(false);
expect(shouldWatchProjectFile(".hyperframes/cache.json")).toBe(false);
expect(shouldWatchProjectFile(".transcode-cache/proxy.mp4")).toBe(false);
expect(shouldWatchProjectFile(".thumbnails/frame.jpg")).toBe(false);
expect(shouldWatchProjectFile(".waveform-cache/peaks.json")).toBe(false);
});
});

Expand Down
3 changes: 3 additions & 0 deletions packages/cli/src/server/fileWatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ const WATCHER_EXCLUDED_DIRS = new Set([
".git",
".hyperframes",
".next",
".thumbnails",
".transcode-cache",
".waveform-cache",
".vite",
"build",
"coverage",
Expand Down
Loading