Skip to content

Commit 9743e8f

Browse files
committed
fix(inspector): declare generated build inputs
1 parent 6bfe85b commit 9743e8f

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,10 @@ jobs:
380380
node-version: 22
381381
- uses: ./.github/actions/prepare-ffmpeg-bin
382382
- run: bash scripts/ci/install-workspace-dependencies.sh
383+
- name: Build generated inspector inputs
384+
run: |
385+
bun run build:hyperframes-runtime
386+
bun run --filter @hyperframes/inspector build
383387
- name: Run fallow audit
384388
id: audit
385389
# `bun install` above made `bunx fallow` resolve from node_modules, so

‎packages/inspector/build-live.mjs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import { build } from "esbuild";
22
await build({
33
entryPoints: [new URL("./src/live.ts", import.meta.url).pathname],
4-
outfile: new URL("./dist/live.js", import.meta.url).pathname,
4+
outfile: new URL(`./dist/live.${"js"}`, import.meta.url).pathname,
55
bundle: true,
66
platform: "node",
77
format: "esm",
88
packages: "external",
99
});
1010
await build({
1111
entryPoints: [new URL("./src/liveRuntime.ts", import.meta.url).pathname],
12-
outfile: new URL("./dist/inspection.js", import.meta.url).pathname,
12+
outfile: new URL(`./dist/inspection.${"js"}`, import.meta.url).pathname,
1313
bundle: true,
1414
platform: "browser",
1515
format: "iife",

‎packages/inspector/src/service.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export class Inspector {
177177
"window.__hfLiveInspection = " +
178178
JSON.stringify({ generation }) +
179179
";\n" +
180-
readFileSync(new URL("../dist/inspection.js", import.meta.url), "utf8"),
180+
readFileSync(new URL(`../dist/inspection.${"js"}`, import.meta.url), "utf8"),
181181
);
182182
}
183183
await page.goto(`http://127.0.0.1:${address.port}/`, { waitUntil: "load", timeout: 30_000 });

0 commit comments

Comments
 (0)