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

Function resolveOnePasswordCoreWasmPath

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

Source from the content-addressed store, hash-verified

52};
53
54const 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
64const resolveWorkerBundlerDistPath = (): string => {
65 const req = createRequire(join(repoRoot, "apps/cli/package.json"));

Callers 1

buildBinariesFunction · 0.85

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected