From 14d43266b14c9558cc04d960923d3dee96e14794 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel?= Date: Mon, 10 Aug 2026 00:32:59 +0000 Subject: [PATCH] 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. --- scripts/generate-registry-items.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/generate-registry-items.ts b/scripts/generate-registry-items.ts index d06a4b1c0f..36390d8a71 100644 --- a/scripts/generate-registry-items.ts +++ b/scripts/generate-registry-items.ts @@ -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, "..");