0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/.changeset/fluffy-onions-wink.md
Ben Holmes 665a2c2225
[Content collections] Improve content config handling (#5824)
* fix: always generate types on init

* fix: skip type generation when no content dir found

* fix: avoid stripping `.ts` for existsSync check

* chore: changeset

* fix: run type gen when content/ dir added in dev
2023-01-11 12:46:53 -05:00

8 lines
250 B
Markdown

---
'astro': patch
---
Better handle content type generation failures:
- Generate types when content directory is empty
- Log helpful error when running `astro sync` without a content directory
- Avoid swallowing `config.ts` syntax errors from Vite