()
| 52 | }; |
| 53 | |
| 54 | const resolveOnePasswordCoreWasmPath = (): string => { |
| 55 | const req = createRequire(join(repoRoot, "packages/plugins/onepassword/package.json")); |
| 56 | const sdkPkg = req.resolve("@1password/sdk/package.json"); |
| 57 | const sdkReq = createRequire(sdkPkg); |
| 58 | const sdkCorePkg = sdkReq.resolve("@1password/sdk-core/package.json"); |
| 59 | const wasmPath = join(dirname(sdkCorePkg), "nodejs/core_bg.wasm"); |
| 60 | if (!existsSync(wasmPath)) throw new Error(`1Password SDK core WASM not found at ${wasmPath}`); |
| 61 | return wasmPath; |
| 62 | }; |
| 63 | |
| 64 | const resolveWorkerBundlerDistPath = (): string => { |
| 65 | const req = createRequire(join(repoRoot, "apps/cli/package.json")); |
no test coverage detected