fix(update): bootstrap pnpm for dev preflight

This commit is contained in:
Peter Steinberger
2026-04-06 01:27:50 +01:00
parent e0354e71eb
commit ca462fb928
5 changed files with 129 additions and 5 deletions

View File

@@ -96,7 +96,7 @@ High-level:
3. Fetches upstream (dev only).
4. Dev only: preflight lint + TypeScript build in a temp worktree; if the tip fails, walks back up to 10 commits to find the newest clean build.
5. Rebases onto the selected commit (dev only).
6. Installs deps (pnpm preferred; npm fallback; bun remains available as a secondary compatibility fallback).
6. Installs deps with the repo package manager. For pnpm checkouts, the updater bootstraps `pnpm` on demand (via `corepack` first, then a temporary `npm install pnpm@10` fallback) instead of running `npm run build` inside a pnpm workspace.
7. Builds + builds the Control UI.
8. Runs `openclaw doctor` as the final “safe update” check.
9. Syncs plugins to the active channel (dev uses bundled extensions; stable/beta uses npm) and updates npm-installed plugins.