fix(studio): exclude generated caches from project metadata

This commit is contained in:
Miguel Ángel
2026-08-02 17:37:51 +00:00
parent 3eb7b1ffd5
commit 1d01b9f2cf
4 changed files with 58 additions and 2 deletions
@@ -20,7 +20,10 @@ const SIGNATURE_EXCLUDED_DIRS = new Set([
".git",
".hyperframes",
".next",
".thumbnails",
".transcode-cache",
".vite",
".waveform-cache",
"build",
"coverage",
"dist",
@@ -6,7 +6,13 @@ import { readdirSync } from "node:fs";
// Re-exported here for back-compat with existing `../helpers/safePath.js` imports.
export { isSafePath, resolveWithinProject } from "@hyperframes/core";
const IGNORE_DIRS = new Set([".thumbnails", "node_modules", ".git"]);
const IGNORE_DIRS = new Set([
".thumbnails",
".transcode-cache",
".waveform-cache",
"node_modules",
".git",
]);
function shouldIgnoreDir(rel: string): boolean {
return rel === ".hyperframes/backup";