c2180746b4
* feat: change cacheDir to `.astro` * feat: write reference in env.d.ts if none exists * chore: update with-content types * test: env.d.ts transform * nit: setUp -> add * refactor: content.d.ts -> types.d.ts * chore: update confirmation log * chore: changeset * feat: inject env.d.ts if none exists * feat: set up env.d.ts on `astro sync` * chore: duplicate envTsPathRelative * docs: update changeset * fix: make srcDir if none exists * fix: types.generated -> .astro in gitignore * feat: add env.d.ts to test gitignore * chore: remove env.d.ts from content-collections * test: move sync tests to `astro sync`, add file write test * refactor: simplify test gitignore to base * fix: add / to `.astro` bc that scares me
572 B
572 B
astro |
---|
minor |
Move generated content collection types to a .astro
directory. This replaces the previously generated src/content/types.generated.d.ts
file.
If you're using Git for version control, we recommend ignoring this generated directory by adding .astro
to your .gitignore.
Astro will also generate the TypeScript reference path to include .astro
types in your project. This will update your project's src/env.d.ts
file, or write one if none exists.