Skip to content

Commit

Permalink
feat: add include
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh committed Sep 13, 2024
1 parent 996500d commit e58f7ad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changeset/clean-camels-drive.md
Original file line number Diff line number Diff line change
@@ -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.
3 changes: 2 additions & 1 deletion packages/astro/tsconfigs/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@
// 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"]
"exclude": ["${configDir}/dist"],
"include": ["${configDir}/.astro/types.d.ts", "${configDir}/**/*"]
}

0 comments on commit e58f7ad

Please sign in to comment.