Skip to content

Commit

Permalink
chore: changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
bholmesdev committed Jan 6, 2023
1 parent 0197ede commit 2ef697b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .changeset/curvy-foxes-reply.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
'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.

#### Migration

You will need a [TypeScript reference path](https://www.typescriptlang.org/docs/handbook/triple-slash-directives.html#-reference-path-) to include `.astro` types in your project. Running `astro dev`, `astro build`, or `astro sync` will configure this automatically if your project has a `src/env.d.ts` file. Otherwise, you can add a `src/env.d.ts` file manually with the following contents:

```diff
/// <reference path="astro/client" />
+ /// <reference types="../.astro/types.d.ts" />
```

0 comments on commit 2ef697b

Please sign in to comment.