mirror of
https://github.com/withastro/astro.git
synced 2025-01-06 22:10:10 -05:00
feat: add default exclude to tsconfigs (#11982)
* feat: add default exclude to tsconfigs * feat: add include
This commit is contained in:
parent
f15922d177
commit
d84e444fd3
2 changed files with 10 additions and 1 deletions
7
.changeset/clean-camels-drive.md
Normal file
7
.changeset/clean-camels-drive.md
Normal 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.
|
|
@ -27,5 +27,7 @@
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
// Allow JSX files (or files that are internally considered JSX, like Astro files) to be imported inside `.js` and `.ts` files.
|
// Allow JSX files (or files that are internally considered JSX, like Astro files) to be imported inside `.js` and `.ts` files.
|
||||||
"jsx": "preserve"
|
"jsx": "preserve"
|
||||||
}
|
},
|
||||||
|
"exclude": ["${configDir}/dist"],
|
||||||
|
"include": ["${configDir}/.astro/types.d.ts", "${configDir}/**/*"]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue