Files
hyperframes/packages/core/src/projectFolders.ts
T
Miguel Ángel 93c321285c fix(studio): render scratch stays out of the project and error telemetry counts real failures only (#5902)
* fix(studio): a lost preview server or a superseded edit no longer files as a crash

* fix(studio-server): a render's scratch files no longer stream changes or list as compositions
2026-10-19 19:52:04 +00:00

24 lines
647 B
TypeScript

/** Folders whose writes never reload Studio's preview, so nothing that judges a preview stale may count them. */
export const PREVIEW_IGNORED_DIRS: ReadonlySet<string> = new Set([
".cache",
".git",
".hyperframes",
".next",
".thumbnails",
".transcode-cache",
".vite",
".waveform-cache",
"build",
"coverage",
"dist",
"node_modules",
"outputs",
"renders",
]);
export const RENDER_TEMP_DIR =
/^(work-[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}|hf-render|\..+\.hf-transaction)-[A-Za-z0-9]{6}$/;
export const isProjectIgnoredDir = (name: string): boolean =>
PREVIEW_IGNORED_DIRS.has(name) || RENDER_TEMP_DIR.test(name);