Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: skip legacy typegen by default #12438

Merged
merged 4 commits into from
Nov 15, 2024
Merged

fix: skip legacy typegen by default #12438

merged 4 commits into from
Nov 15, 2024

Conversation

ascorbic
Copy link
Contributor

@ascorbic ascorbic commented Nov 14, 2024

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

Copy link

changeset-bot bot commented Nov 14, 2024

🦋 Changeset detected

Latest commit: ccf40b9

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

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Nov 14, 2024
@ascorbic ascorbic marked this pull request as draft November 14, 2024 20:55
@ascorbic ascorbic marked this pull request as ready for review November 15, 2024 10:30
@ematipico ematipico merged commit c8f877c into next Nov 15, 2024
13 checks passed
@ematipico ematipico deleted the no-legacy-glob branch November 15, 2024 13:28
HiDeoo added a commit to HiDeoo/starlight that referenced this pull request Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants