Skip to content

fix(desktop): stage the server with pnpm 12's non-legacy deploy - #100

Merged
ackness merged 1 commit into
mainfrom
fix/desktop-pnpm12-deploy
Oct 1, 2026
Merged

ackness merged 1 commit into
mainfrom
fix/desktop-pnpm12-deploy

Conversation

@ackness

@ackness ackness commented Oct 1, 2026

Copy link
Copy Markdown
Owner

Summary

Fix desktop packaging after the pnpm 12 upgrade. pnpm deploy --legacy with the hoisted linker prints the install plan under pnpm 12 but leaves node_modules incomplete, so desktop server staging lost better-sqlite3. This broke main CI (@covel/desktop#build) and both Electron jobs of the v0.0.44 Build Desktop run. The staging step now uses the shared-lockfile deploy (--config.inject-workspace-packages=true), which copies workspace packages and their transitive dependencies.

Type of change

  • Bug fix (fix)
  • Infra / CI (chore)

Verification

  • Reproduced locally with pnpm 12.6.0: the legacy deploy produced an empty or incomplete node_modules; the non-legacy deploy stages 52 packages including @covel/store and better-sqlite3 with all eight Node-API prebuilds, with only .bin command links.
  • pnpm --filter @covel/desktop build passes locally: server runtime verification and both staging boot smoke checks.
  • Pre-push clean-checkout verification passed.
  • Build Desktop dry run (workflow_dispatch, publish_release=false) on this branch — see the linked run.

Related issue / context

  • The v0.0.44 tag has been deleted (nothing was published) and will be re-created on main after this merges.

Under pnpm 12, `pnpm deploy --legacy` with the hoisted linker prints the
install plan but leaves node_modules incomplete, so desktop staging lost
better-sqlite3 and every packaging job failed. Use the shared-lockfile
deploy (`inject-workspace-packages=true`), which copies workspace
packages and their transitive dependencies into the staged server.
@ackness
ackness merged commit f689c52 into main Oct 1, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant