fix(codex): harden windows light install

This commit is contained in:
YeonGyu-Kim
2026-05-31 13:23:24 +09:00
parent 4e31d7df5d
commit 92bad87d84
42 changed files with 1675 additions and 23 deletions
@@ -0,0 +1,20 @@
import assert from "node:assert/strict";
import { readFile } from "node:fs/promises";
import { dirname, join } from "node:path";
import test from "node:test";
import { fileURLToPath } from "node:url";
const root = dirname(dirname(fileURLToPath(import.meta.url)));
test("#given aggregate build scripts #when inspected #then install-time build does not invoke Bun", async () => {
// given
const buildComponentsScript = await readFile(join(root, "scripts", "build-components.mjs"), "utf8");
const buildBundledMcpRuntimesScript = await readFile(join(root, "scripts", "build-bundled-mcp-runtimes.mjs"), "utf8");
// when
const installTimeBuildScripts = [buildComponentsScript, buildBundledMcpRuntimesScript].join("\n");
// then
assert.doesNotMatch(installTimeBuildScripts, /spawnSync\("bun"/);
assert.doesNotMatch(installTimeBuildScripts, /\bbun\s+run\b/);
});