withastro / astro

The web framework for content-driven websites. ⭐️ Star to support our work!
https://astro.build
Other
46.98k stars 2.5k forks source link

fix: skip legacy typegen by default #12438

Closed ascorbic closed 1 week ago

ascorbic commented 1 week ago

Changes

We now allow content layer collections in src/content, and disable the Vite watcher for them unless legacy collections are enabled. However we didn't skip the typegen that also runs via a glob on that folder, meaning that legacy types were being generated. This PR ensures that these are also skipped unless the legacy flag is set.

Fixes PLT-2640

Testing

Adds a test case, and updates another of the fixtures.

Docs

changeset-bot[bot] commented 1 week ago

🦋 Changeset detected

Latest commit: ccf40b9b9735f68edde5b72b58c381f1cc0a9ea9

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR