mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-15 22:08:03 +00:00
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:
@@ -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, "..");
|
||||
|
||||
Reference in New Issue
Block a user