()
| 15 | const WORKER_BUNDLER_DIRNAME = "worker-bundler"; |
| 16 | |
| 17 | const 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 | |
| 28 | const resolveOnePasswordCoreWasmPath = (): string => { |
| 29 | const req = createRequire(join(repoRoot, "packages/plugins/onepassword/package.json")); |
no test coverage detected