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

Function resolveOnePasswordCoreWasmPath

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

Source from the content-addressed store, hash-verified

26};
27
28const 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
38const resolveWorkerBundlerDistPath = (): string => {
39 const req = createRequire(join(repoRoot, "packages/plugins/apps/package.json"));

Callers 1

buildBinariesFunction · 0.85

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected