DashboardspotlightPreview dependency migrations in isolat…

Preview dependency migrations in isolated scratch directories before committing

Category: preference
Confidence: 0.80
ID: 019fa896-1537-7d74-b5e0-c3faca7592ba
Project ID: ec1699be-a430-4fc6-879b-c437a47171b4
Cross-project: No
Recalled in other projects: 0
Source session: 03BZMNDkvAWYc2eKB
Created: 2026-07-28 11:57:15
Updated: 2026-07-28 11:57:15

Content

When tackling complex dependency bumps (e.g., Astro 6→7, Vite 8) that risk peer-error cascades, the user clones the repo to a /tmp scratch directory, applies temporary overrides to root package.json, and runs pnpm install --no-frozen-lockfile to surface resolution failures — WITHOUT modifying the actual working tree or committing anything. The goal is purely diagnostic: capture peer/dependency conflict output for review before deciding whether to proceed. Follow this pattern for risky migrations: isolate the experiment, never touch the real branch's package.json/lockfile, and present findings to the user before any real change is made.

Move to: