baa-conductor

git clone 

commit
8ef82d8
parent
6516c64
author
im_wower
date
2026-03-28 16:25:16 +0800 CST
test: build conductor dist before browser smoke
1 files changed,  +13, -2
M tests/browser/browser-control-e2e-smoke.test.mjs
+13, -2
 1@@ -1,14 +1,25 @@
 2 import assert from "node:assert/strict";
 3+import { execFileSync } from "node:child_process";
 4 import { mkdtempSync, readFileSync, rmSync } from "node:fs";
 5 import { createRequire } from "node:module";
 6 import { tmpdir } from "node:os";
 7 import { join } from "node:path";
 8 import test from "node:test";
 9+import { fileURLToPath } from "node:url";
10 import vm from "node:vm";
11 
12-import { ConductorRuntime } from "../../apps/conductor-daemon/dist/index.js";
13-
14 const require = createRequire(import.meta.url);
15+const repoRoot = new URL("../../", import.meta.url);
16+const conductorTsconfigPath = new URL("../../apps/conductor-daemon/tsconfig.json", import.meta.url);
17+const tscPath = new URL("../../node_modules/.bin/tsc", import.meta.url);
18+
19+execFileSync(fileURLToPath(tscPath), ["-p", fileURLToPath(conductorTsconfigPath)], {
20+  cwd: fileURLToPath(repoRoot),
21+  stdio: "ignore"
22+});
23+
24+const { ConductorRuntime } = await import("../../apps/conductor-daemon/dist/index.js");
25+
26 const {
27   createDeliveryRuntime,
28   getPlatformAdapter,