astro@5.0.0-alpha.4
withastro/astro — 1 week ago
Major Changes
-
#11859
3804711
Thanks @florian-lefebvre! - Changes the defaulttsconfig.json
with better defaults, and makessrc/env.d.ts
optionalAstro's default
tsconfig.json
in starter examples has been updated to include generated types and exclude your build output. This means thatsrc/env.d.ts
is only necessary if you have added custom type declarations or if you're not using atsconfig.json
file.Additionally, running
astro sync
no longer creates, nor updates,src/env.d.ts
as it is not required for type-checking standard Astro projects.To update your project to Astro's recommended TypeScript settings, please add the following
include
andexclude
properties totsconfig.json
:{ "extends": "astro/tsconfigs/base", "include": ["**/*",...