Last 12 weeks · 0 commits
3 of 6 standards met
This PR rejigs the build script so we can build each example with its own version of Astro. This enables the Starlight examples to build with v4 still, while everything else is on v5 now. I ran this locally and it built all examples as expected. How We need to use the programmatic API so we can add a custom integration to each example, but running this as we did previously meant that the monorepo version of Astro was imported and used to build all examples. The build script is now updated to run a separate Node script in a subprocess for each example. We copy this script to the example’s directory Then run it with That ensures the import pulls in the version for that example As part of this, I had to refactor the custom integration to be a workspace package to avoid relative imports in the build script we copy around.
Repository: withastro/preview.astro.new. Description: Build and preview Astro’s official starter templates Stars: 2, Forks: 1. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Homepage: https://astro.new Open PRs: 0, open issues: 0. Last activity: 1y ago. Community health: 62%. Top contributors: delucis.