mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-10 22:20:14 +00:00
fix(studio): exclude generated caches from project metadata
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user