c7f4cd582f
The check script ran: typecheck && test && test:desktop:all && build test:desktop:all calls ensurePackagedApp() → npm run pack, which itself runs npm run build (vite + electron-main + preload + stage-native-deps) before electron-builder --dir. The trailing npm run build was rebuilding the exact same dist/ output a second time. electron-builder --dir reads dist/ as input and doesn't mutate it, so nothing between the two builds invalidates the first one. On the CI linux runner this saves the vite+bundle build (~5s) on every js-tests run. The postbuild assert-dist-built.mjs still runs as part of pack's build step.