mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-18 16:08:56 +00:00
fix: cache paths follow HYPERFRAMES_CACHE_DIR (#6716)
* fix: cache paths follow HYPERFRAMES_CACHE_DIR Every place HyperFrames keeps downloaded or built files now takes its folder from one helper, hyperframesCacheDir() in @hyperframes/core. The default stays ~/.cache/hyperframes; HYPERFRAMES_CACHE_DIR moves it. * fix: register the cache-dir subpath for bun and node, and build inspector from core source * test: the cache-dir override test uses a folder that is absolute on every platform * fix: the opencv cache follows HYPERFRAMES_CACHE_DIR * fix(cli): npm installs run in their staging dir, so no cache path reaches a command line * fix(cli): whisper.cpp is cloned inside its build dir, so no cache path is a git argument * test(cli): the whisper clone test finds no system whisper on Windows either
This commit is contained in:
@@ -11,14 +11,14 @@ import {
|
||||
renameSync,
|
||||
unlinkSync,
|
||||
} from "node:fs";
|
||||
import { homedir } from "node:os";
|
||||
import { dirname, join } from "node:path";
|
||||
import { downloadFile } from "../../utils/download.js";
|
||||
import { isMissingPackageError } from "../../utils/missingPackage.js";
|
||||
import { VERSION } from "../../version.js";
|
||||
import { hyperframesCacheDir } from "@hyperframes/core/cache-dir";
|
||||
|
||||
const DOCS_URL = "https://hyperframes.heygen.com/deploy/aws-lambda";
|
||||
const HANDLER_CACHE_DIR = join(homedir(), ".cache", "hyperframes", "lambda-handler");
|
||||
const HANDLER_CACHE_DIR = hyperframesCacheDir("lambda-handler");
|
||||
|
||||
type AdapterSdk = typeof import("@hyperframes/aws-lambda/sdk");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user