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(astro): support content/config.mts #8484

Merged
merged 3 commits into from
Sep 11, 2023
Merged

Conversation

bb010g
Copy link
Contributor

@bb010g bb010g commented Sep 10, 2023

.mts files are consistently supported elsewhere.

Changes

  • Recognize config.mts as a content collections configuration file.

Testing

  • astro test fixture content-collections-with-config-mts, based on content-collections-with-config-mjs

Docs

https://docs.astro.build/en/guides/content-collections/#defining-collections needs to mention the .mts extension as an option.

/cc @withastro/maintainers-docs for feedback!

`.mts` is consistently supported elsewhere.
@changeset-bot
Copy link

changeset-bot bot commented Sep 10, 2023

🦋 Changeset detected

Latest commit: 9fa4b06

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 Sep 10, 2023
Copy link
Member

@ematipico ematipico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need a changelog for this fix

Copy link
Member

@Princesseuh Princesseuh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you!

@Princesseuh Princesseuh merged commit 78b82bb into withastro:main Sep 11, 2023
@astrobot-houston astrobot-houston mentioned this pull request Sep 11, 2023
@bb010g bb010g deleted the patch-1 branch September 12, 2023 20:42
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.

3 participants