mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
0ea6187f95
* Added support for updating tsconfig.json when using astro add * Refactor * Remove unneeded change * Fix build failling due to type difference * Extend changeset description
18 lines
533 B
Markdown
18 lines
533 B
Markdown
---
|
|
'astro': minor
|
|
---
|
|
|
|
Added support for updating TypeScript settings automatically when using `astro add`
|
|
|
|
The `astro add` command will now automatically update your `tsconfig.json` with the proper TypeScript settings needed for the chosen frameworks.
|
|
|
|
For instance, typing `astro add solid` will update your `tsconfig.json` with the following settings, per [Solid's TypeScript guide](https://www.solidjs.com/guides/typescript):
|
|
|
|
```json
|
|
{
|
|
"compilerOptions": {
|
|
"jsx": "preserve",
|
|
"jsxImportSource": "solid-js"
|
|
}
|
|
}
|
|
```
|