MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / resolveQuickJsWasmPath

Function resolveQuickJsWasmPath

apps/cli/src/build.ts:17–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15const WORKER_BUNDLER_DIRNAME = "worker-bundler";
16
17const resolveQuickJsWasmPath = (): string => {
18 const req = createRequire(join(repoRoot, "packages/kernel/runtime-quickjs/package.json"));
19 const quickJsPkg = req.resolve("quickjs-emscripten/package.json");
20 const wasmPath = resolve(
21 dirname(quickJsPkg),
22 "../@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.wasm",
23 );
24 if (!existsSync(wasmPath)) throw new Error(`QuickJS WASM not found at ${wasmPath}`);
25 return wasmPath;
26};
27
28const resolveOnePasswordCoreWasmPath = (): string => {
29 const req = createRequire(join(repoRoot, "packages/plugins/onepassword/package.json"));

Callers 1

buildBinariesFunction · 0.85

Calls 2

resolveMethod · 0.80
resolveFunction · 0.50

Tested by

no test coverage detected