← knowledge.oriz.in

Astro version pin: major in package.json, auto-update minors weekly

rule rulesastrodependenciesversioningpnpm

Astro version pin

The rule

Every package.json pins Astro at the current major via caret ("astro": "^6.0.0"). Minors + patches update automatically via the weekly pnpm update --latest --recursive cron. Majors (Astro 6 → 7) ship via a single workspace-wide PR touching all 25+ repos at once.

Companion runtime pins

Same caret-on-major rule applies family-wide:

Runtime Package Pin
Sites astro ^6.0.0
Sites react / react-dom ^19.0.0
Sites tailwindcss / @tailwindcss/vite ^4.0.0
Extensions wxt ^0.20.0
VSC ext esbuild ^0.24.0
CLI / MCP tsup ^8.0.0
Node runtime (target) >= 22.0.0
Package mgr pnpm ^10.0.0
Linter @biomejs/biome ^2.0.0

Why

How to apply

Weekly automation (GH Actions cron at workspace root):

- run: pnpm update --latest --recursive

Major upgrade flow (when Astro 7 ships):

  1. Wait 4 weeks after stable for ecosystem to catch up
  2. Single PR on chirag127/workspace updates every submodule
  3. CI runs pnpm install + pnpm build across every submodule
  4. Land all-at-once on green

When NOT to apply