0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

feat: add default exclude to tsconfigs (#11982)

* feat: add default exclude to tsconfigs

* feat: add include
This commit is contained in:
Erika 2024-09-13 16:24:00 +02:00 committed by GitHub
parent f15922d177
commit d84e444fd3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 1 deletions

View file

@ -0,0 +1,7 @@
---
'astro': major
---
Adds a default exclude and include value to the tsconfig presets. `{projectDir}/dist` is now excluded by default, and `{projectDir}/.astro/types.d.ts` and `{projectDir}/**/*` are included by default.
Both of these options can be overridden by setting your own values to the corresponding settings in your `tsconfig.json` file.

View file

@ -27,5 +27,7 @@
"allowJs": true,
// Allow JSX files (or files that are internally considered JSX, like Astro files) to be imported inside `.js` and `.ts` files.
"jsx": "preserve"
}
},
"exclude": ["${configDir}/dist"],
"include": ["${configDir}/.astro/types.d.ts", "${configDir}/**/*"]
}