build: upgrade site to Astro 7 - #5
Merged
Merged
Conversation
- astro ^5.13 -> ^7.3.4, @astrojs/mdx ^4 -> ^8, @astrojs/sitemap ^3.7.4, @astrojs/partytown ^2.1.8, astro-compress ^2.4.3, astro-icon ^1.2.0 - add pnpm-workspace.yaml (allowBuilds for esbuild/sharp/@parcel/watcher, shamefullyHoist) and .npmrc shamefully-hoist for pnpm 9 CI - astro 7 vite module-runner can't resolve astro's aliased internals (piccolore/html-escaper) under pnpm's isolated layout without hoisting - pnpm audit --prod: 0 vulnerabilities (was 17, incl. 12 high)
- node 22 -> 24 (astro 7 needs >=22.12), pnpm 9 -> 10, action-setup v2 -> v4 - pnpm 10 accepts the settings-only site/pnpm-workspace.yaml (allowBuilds + shamefullyHoist) that pnpm 9 rejected for missing packages field - drop site/.npmrc shamefully-hoist shim (pnpm 10 reads pnpm-workspace.yaml)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
^7.3.4): @astrojs/mdx 8, sitemap 3.7.4, partytown 2.1.8, astro-compress 2.4.3, astro-icon 1.2.site/pnpm-workspace.yaml(allowBuildsfor esbuild/sharp/@parcel/watcher,shamefullyHoist) — Astro 7's vite module-runner fails to resolve astro's internals (piccolore,html-escaper) under pnpm's isolated layout without hoisting.cloudflare/pages-actionwithwrangler-action@v3(prod deploys were broken since the action was removed — last successful main deploy was May).shamefullyHoistconfig lives in pnpm-workspace.yaml, which pnpm 10 honors.Security
pnpm audit --prod: 0 vulnerabilities (was 17: 12 high / 5 moderate, all transitive — resolved by in-range updates).Verification
pnpm build: 134 pages built (baseline astro 5 build was already broken on this layout; now green).pnpm check(prettier + eslint + tsc): all pass.Verified with pnpm 10.34.5 (CI's target) and pnpm 12 (local).