From 1244a1f8c248798a01efb78837a244b36be4a0dd Mon Sep 17 00:00:00 2001 From: Martin Marinov Date: Wed, 10 Jun 2026 18:20:21 +0300 Subject: [PATCH] fix(wallet): build the local SDK before bundling so a fresh clone works The wallet depends on lightnode-sdk via file:../sdk, but sdk/dist is a gitignored build artifact and npm only has the stale 0.10.8 (local is 0.18.3), so a fresh clone had no dist to resolve and `npm run build` failed with "Failed to resolve entry for package lightnode-sdk". Mirror the root app's pattern: a prebuild (and predev) step that installs + builds the local SDK first, so `npm run build` produces sdk/dist before wxt bundles. Verified by removing sdk/dist and running a clean build end to end. --- wallet/package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wallet/package.json b/wallet/package.json index ecb8066..c4cc170 100644 --- a/wallet/package.json +++ b/wallet/package.json @@ -5,7 +5,10 @@ "type": "module", "description": "Self-custodial EOA browser wallet for LightChain. Non-custodial: keys never leave the device. Not an official LightChain package.", "scripts": { + "build:sdk": "npm --prefix ../sdk install --no-audit --no-fund && npm --prefix ../sdk run build", + "predev": "npm run build:sdk", "dev": "wxt", + "prebuild": "npm run build:sdk", "build": "wxt build", "zip": "wxt zip", "compile": "tsc --noEmit",