mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-18 16:08:56 +00:00
* feat(cli): hyperframes projects finds the HyperFrames projects on this machine * refactor(core): keep the project rule's comment share under its package's * fix(cli): projects keeps Spotlight hits under a symlinked root and refuses a missing root * style(cli): format the projects walker and its tests * fix(cli): projects tests pass under a symlinked temp folder and a bad root errors on stderr * test(cli): projects tests hold on Windows and cover an unreadable root * style(cli): format the projects command and tests * refactor(cli): split the projects Spotlight check and regenerate the skills manifest * refactor(core): findProjects moves to @hyperframes/core/projects so Desktop can import it * chore(core): publish the projects subpath * fix(core): findProjects fails on a root it cannot read instead of finding nothing * docs(core): name the project marker writers without naming one app * refactor(core): ship findProjects as a core export only, with no CLI command * feat(core): findProjects stops on an abort signal and defaults to the home folder * fix(core): findProjects checks an aborted signal first and stops when onProject throws
8 lines
421 B
TypeScript
8 lines
421 B
TypeScript
/** Files that `hyperframes init` or another HyperFrames tool writes at a project's root, next to its `index.html`. */
|
|
export const PROJECT_MARKER_FILES = ["hyperframes.json", "meta.json", "project.json"] as const;
|
|
|
|
export function isHyperframesProject(fileNames: Iterable<string>): boolean {
|
|
const names = new Set(fileNames);
|
|
return names.has("index.html") && PROJECT_MARKER_FILES.some((name) => names.has(name));
|
|
}
|