fix(core,cli,ci): harden runtime resolution + inline constant + smoke test (#458)

Guard buildHyperframesRuntimeScript() against missing entry.ts so it
returns null instead of crashing with esbuild stderr output. Add
getHyperframeRuntimeScript() that returns the pre-built IIFE as a
baked-in string constant — no esbuild, no file I/O, no import.meta.url.

Consolidate CLI runtime source resolution into a single module with
a clear priority chain: esbuild from source (dev) → inlined constant
(production) → pre-built artifact file (fallback).

Add CI smoke test that npm-packs the CLI, installs globally, runs
hyperframes preview, and asserts no stderr errors + runtime endpoint
returns JS.

Bump version to 0.4.16.
This commit is contained in:
Miguel Ángel
2026-04-23 21:44:26 +02:00
committed by GitHub
parent 34db66ef0a
commit 072814e65c
17 changed files with 158 additions and 27 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@hyperframes/core",
"version": "0.4.15",
"version": "0.4.16",
"description": "",
"repository": {
"type": "git",
@@ -80,7 +80,7 @@
"types": "./dist/index.d.ts"
},
"scripts": {
"build": "tsc && bun run build:hyperframes-runtime",
"build": "bun run build:hyperframes-runtime && tsc",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",