fix: update CI preload artifact name to .cjs and add freshness grace period for dev startup

- Update CI verification step to check preload.cjs instead of preload.js,
  matching the tsdown CJS output format.
- Add 10s grace period to bundle freshness check in dev-electron.mjs to
  avoid race condition when parallel processes write bundles before the
  script records its start time.
This commit is contained in:
Cursor Agent authored and Julius Marminge committed 2026-02-17 19:49:54 -08:00
1 parent 47d5dc205d
commit e666957884
2 files changed
+4 -3

No files matched your search

+2 -2
View File
@@ -50,8 +50,8 @@ jobs:
- name: Verify preload bundle output
run: |
test -f apps/desktop/dist-electron/preload.js
grep -nE "desktopBridge|getWsUrl|PICK_FOLDER_CHANNEL|wsUrl" apps/desktop/dist-electron/preload.js
test -f apps/desktop/dist-electron/preload.cjs
grep -nE "desktopBridge|getWsUrl|PICK_FOLDER_CHANNEL|wsUrl" apps/desktop/dist-electron/preload.cjs
- name: Install desktop runtime deps (Linux)
if: runner.os == 'Linux'