()
| 26 | }; |
| 27 | |
| 28 | const resolveOnePasswordCoreWasmPath = (): string => { |
| 29 | const req = createRequire(join(repoRoot, "packages/plugins/onepassword/package.json")); |
| 30 | const sdkPkg = req.resolve("@1password/sdk/package.json"); |
| 31 | const sdkReq = createRequire(sdkPkg); |
| 32 | const sdkCorePkg = sdkReq.resolve("@1password/sdk-core/package.json"); |
| 33 | const wasmPath = join(dirname(sdkCorePkg), "nodejs/core_bg.wasm"); |
| 34 | if (!existsSync(wasmPath)) throw new Error(`1Password SDK core WASM not found at ${wasmPath}`); |
| 35 | return wasmPath; |
| 36 | }; |
| 37 | |
| 38 | const resolveWorkerBundlerDistPath = (): string => { |
| 39 | const req = createRequire(join(repoRoot, "packages/plugins/apps/package.json")); |
no test coverage detected