From f08f65c6ad248c1023813c00ee8071375bc9e7b2 Mon Sep 17 00:00:00 2001 From: Sparsh Date: Tue, 19 May 2026 12:12:43 +0530 Subject: [PATCH] fix(desktop): drop --ignore-scripts so lbugjs.node install hook runs Using --ignore-scripts with npm ci skips per-package install hooks, including @ladybugdb/core's install.js that copies lbugjs.node into the correct path. Without it, process.dlopen fails with ERR_DLOPEN_FAILED. --- gitnexus-desktop/scripts/ensure-gitnexus-runtime.mjs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gitnexus-desktop/scripts/ensure-gitnexus-runtime.mjs b/gitnexus-desktop/scripts/ensure-gitnexus-runtime.mjs index db53bd0a8..1573ea6ee 100644 --- a/gitnexus-desktop/scripts/ensure-gitnexus-runtime.mjs +++ b/gitnexus-desktop/scripts/ensure-gitnexus-runtime.mjs @@ -263,11 +263,7 @@ const runNpm = (args, cwd) => { const repairGitNexusPackages = (_dependencyMap, label) => { console.info(`[gitnexus-desktop] ${label}.`); - // Skip lifecycle scripts (postinstall/prepare) — the prepare script triggers - // a full gitnexus + web build which can exceed its 120 s execSync timeout on - // a cold machine. The runtime artifacts are rebuilt separately via - // runNpm(['run', 'build'], gitnexusRoot) below when isGitNexusBuildStale(). - runNpm(['ci', '--ignore-scripts'], gitnexusRoot); + runNpm(['ci'], gitnexusRoot); }; const runCommand = (command, args) => {