fix(scripts): resolve core from source in the registry generator

Importing @hyperframes/core by package name resolves on a machine with a warm node_modules and fails under the scripts typecheck in CI. Every other script here imports from source for exactly this reason.
This commit is contained in:
Miguel Ángel
2026-08-10 00:32:59 +00:00
parent a87742e1b7
commit 14d43266b1
+4 -1
View File
@@ -24,7 +24,10 @@ import {
type FileType,
type RegistryItem,
type RegistryManifest,
} from "@hyperframes/core";
// Import from source, like every other script here: bun workspace linking
// does not resolve for scripts outside packages/, so the package name
// typechecks on a machine with a warm node_modules and fails in CI.
} from "../packages/core/src/index.js";
const scriptDir = dirname(fileURLToPath(import.meta.url));
const repoRoot = resolve(scriptDir, "..");