diff --git a/.changeset/old-zebras-teach.md b/.changeset/old-zebras-teach.md
index 1b22948949e5..45963152b7aa 100644
--- a/.changeset/old-zebras-teach.md
+++ b/.changeset/old-zebras-teach.md
@@ -13,7 +13,7 @@ To update your project to Astro's recommended TypeScript settings, please add th
```diff
{
"extends": "astro/tsconfigs/base",
-+ "include": ["**/*", ".astro/types.d.ts"],
++ "include": [".astro/types.d.ts", "**/*"],
+ "exclude": ["dist"]
}
```
\ No newline at end of file
diff --git a/.changeset/violet-goats-grab.md b/.changeset/violet-goats-grab.md
new file mode 100644
index 000000000000..ae4bfef831cd
--- /dev/null
+++ b/.changeset/violet-goats-grab.md
@@ -0,0 +1,7 @@
+---
+'astro': minor
+---
+
+Updates `astro/config` import to reference `astro/client` types
+
+When importing `astro/config`, types from `astro/client` will be made automatically available to your project. If your project `tsconfig.json` changes how references behave, you'll still have access to these types after running `astro sync`.
diff --git a/examples/basics/src/env.d.ts b/examples/basics/src/env.d.ts
deleted file mode 100644
index 9bc5cb41c24e..000000000000
--- a/examples/basics/src/env.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-///
\ No newline at end of file
diff --git a/examples/basics/tsconfig.json b/examples/basics/tsconfig.json
index d2e51fb463de..f11a46c8e5fb 100644
--- a/examples/basics/tsconfig.json
+++ b/examples/basics/tsconfig.json
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
diff --git a/examples/blog/tsconfig.json b/examples/blog/tsconfig.json
index c2e5e77cdc53..676d1945a177 100644
--- a/examples/blog/tsconfig.json
+++ b/examples/blog/tsconfig.json
@@ -1,6 +1,6 @@
{
"extends": "astro/tsconfigs/base",
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"],
"compilerOptions": {
"strictNullChecks": true
diff --git a/examples/component/tsconfig.json b/examples/component/tsconfig.json
index 3e4a08650bd4..e2bdd98c6fd7 100644
--- a/examples/component/tsconfig.json
+++ b/examples/component/tsconfig.json
@@ -1,6 +1,6 @@
{
"extends": "astro/tsconfigs/base",
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"],
"compilerOptions": {
"jsx": "preserve"
diff --git a/examples/container-with-vitest/tsconfig.json b/examples/container-with-vitest/tsconfig.json
index d2e51fb463de..f11a46c8e5fb 100644
--- a/examples/container-with-vitest/tsconfig.json
+++ b/examples/container-with-vitest/tsconfig.json
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
diff --git a/examples/framework-alpine/tsconfig.json b/examples/framework-alpine/tsconfig.json
index d2e51fb463de..f11a46c8e5fb 100644
--- a/examples/framework-alpine/tsconfig.json
+++ b/examples/framework-alpine/tsconfig.json
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
diff --git a/examples/framework-multiple/tsconfig.json b/examples/framework-multiple/tsconfig.json
index 38d2e052b524..1d2def77194d 100644
--- a/examples/framework-multiple/tsconfig.json
+++ b/examples/framework-multiple/tsconfig.json
@@ -1,6 +1,6 @@
{
"extends": "astro/tsconfigs/base",
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"],
"compilerOptions": {
// Needed for TypeScript intellisense in the template inside Vue files
diff --git a/examples/framework-preact/tsconfig.json b/examples/framework-preact/tsconfig.json
index 8faaad1f8958..50ad34429bdb 100644
--- a/examples/framework-preact/tsconfig.json
+++ b/examples/framework-preact/tsconfig.json
@@ -1,6 +1,6 @@
{
"extends": "astro/tsconfigs/base",
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"],
"compilerOptions": {
// Preact specific settings
diff --git a/examples/framework-react/tsconfig.json b/examples/framework-react/tsconfig.json
index 1bb17eb064a5..866156f0784c 100644
--- a/examples/framework-react/tsconfig.json
+++ b/examples/framework-react/tsconfig.json
@@ -1,6 +1,6 @@
{
"extends": "astro/tsconfigs/base",
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"],
"compilerOptions": {
"jsx": "react-jsx",
diff --git a/examples/framework-solid/tsconfig.json b/examples/framework-solid/tsconfig.json
index c1ca2dae5f79..7db18fbb3c12 100644
--- a/examples/framework-solid/tsconfig.json
+++ b/examples/framework-solid/tsconfig.json
@@ -1,6 +1,6 @@
{
"extends": "astro/tsconfigs/base",
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"],
"compilerOptions": {
// Solid specific settings
diff --git a/examples/framework-svelte/tsconfig.json b/examples/framework-svelte/tsconfig.json
index d2e51fb463de..f11a46c8e5fb 100644
--- a/examples/framework-svelte/tsconfig.json
+++ b/examples/framework-svelte/tsconfig.json
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
diff --git a/examples/framework-vue/tsconfig.json b/examples/framework-vue/tsconfig.json
index 38d2e052b524..1d2def77194d 100644
--- a/examples/framework-vue/tsconfig.json
+++ b/examples/framework-vue/tsconfig.json
@@ -1,6 +1,6 @@
{
"extends": "astro/tsconfigs/base",
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"],
"compilerOptions": {
// Needed for TypeScript intellisense in the template inside Vue files
diff --git a/examples/hackernews/tsconfig.json b/examples/hackernews/tsconfig.json
index d2e51fb463de..f11a46c8e5fb 100644
--- a/examples/hackernews/tsconfig.json
+++ b/examples/hackernews/tsconfig.json
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
diff --git a/examples/middleware/tsconfig.json b/examples/middleware/tsconfig.json
index d2e51fb463de..f11a46c8e5fb 100644
--- a/examples/middleware/tsconfig.json
+++ b/examples/middleware/tsconfig.json
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
diff --git a/examples/minimal/tsconfig.json b/examples/minimal/tsconfig.json
index d2e51fb463de..f11a46c8e5fb 100644
--- a/examples/minimal/tsconfig.json
+++ b/examples/minimal/tsconfig.json
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
diff --git a/examples/non-html-pages/tsconfig.json b/examples/non-html-pages/tsconfig.json
index d2e51fb463de..f11a46c8e5fb 100644
--- a/examples/non-html-pages/tsconfig.json
+++ b/examples/non-html-pages/tsconfig.json
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
diff --git a/examples/portfolio/tsconfig.json b/examples/portfolio/tsconfig.json
index d2e51fb463de..f11a46c8e5fb 100644
--- a/examples/portfolio/tsconfig.json
+++ b/examples/portfolio/tsconfig.json
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
diff --git a/examples/ssr/tsconfig.json b/examples/ssr/tsconfig.json
index d2e51fb463de..f11a46c8e5fb 100644
--- a/examples/ssr/tsconfig.json
+++ b/examples/ssr/tsconfig.json
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
diff --git a/examples/starlog/tsconfig.json b/examples/starlog/tsconfig.json
index 08454317ed8d..8bf91d3bb997 100644
--- a/examples/starlog/tsconfig.json
+++ b/examples/starlog/tsconfig.json
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/strict",
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
diff --git a/examples/view-transitions/tsconfig.json b/examples/view-transitions/tsconfig.json
index 60762da04dcf..87e147979283 100644
--- a/examples/view-transitions/tsconfig.json
+++ b/examples/view-transitions/tsconfig.json
@@ -1,6 +1,6 @@
{
"extends": "astro/tsconfigs/base",
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"],
"compilerOptions": {
"resolveJsonModule": true
diff --git a/examples/with-markdoc/tsconfig.json b/examples/with-markdoc/tsconfig.json
index c2e5e77cdc53..676d1945a177 100644
--- a/examples/with-markdoc/tsconfig.json
+++ b/examples/with-markdoc/tsconfig.json
@@ -1,6 +1,6 @@
{
"extends": "astro/tsconfigs/base",
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"],
"compilerOptions": {
"strictNullChecks": true
diff --git a/examples/with-markdown-plugins/tsconfig.json b/examples/with-markdown-plugins/tsconfig.json
index d2e51fb463de..f11a46c8e5fb 100644
--- a/examples/with-markdown-plugins/tsconfig.json
+++ b/examples/with-markdown-plugins/tsconfig.json
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
diff --git a/examples/with-markdown-shiki/tsconfig.json b/examples/with-markdown-shiki/tsconfig.json
index d2e51fb463de..f11a46c8e5fb 100644
--- a/examples/with-markdown-shiki/tsconfig.json
+++ b/examples/with-markdown-shiki/tsconfig.json
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
diff --git a/examples/with-mdx/tsconfig.json b/examples/with-mdx/tsconfig.json
index d2e51fb463de..f11a46c8e5fb 100644
--- a/examples/with-mdx/tsconfig.json
+++ b/examples/with-mdx/tsconfig.json
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
diff --git a/examples/with-nanostores/tsconfig.json b/examples/with-nanostores/tsconfig.json
index 8faaad1f8958..50ad34429bdb 100644
--- a/examples/with-nanostores/tsconfig.json
+++ b/examples/with-nanostores/tsconfig.json
@@ -1,6 +1,6 @@
{
"extends": "astro/tsconfigs/base",
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"],
"compilerOptions": {
// Preact specific settings
diff --git a/examples/with-tailwindcss/tsconfig.json b/examples/with-tailwindcss/tsconfig.json
index d2e51fb463de..f11a46c8e5fb 100644
--- a/examples/with-tailwindcss/tsconfig.json
+++ b/examples/with-tailwindcss/tsconfig.json
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
diff --git a/examples/with-vitest/tsconfig.json b/examples/with-vitest/tsconfig.json
index d2e51fb463de..f11a46c8e5fb 100644
--- a/examples/with-vitest/tsconfig.json
+++ b/examples/with-vitest/tsconfig.json
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md
index ff43c9ac5491..eaf252d703cf 100644
--- a/packages/astro/CHANGELOG.md
+++ b/packages/astro/CHANGELOG.md
@@ -163,7 +163,7 @@
```diff
{
"extends": "astro/tsconfigs/base",
- + "include": ["**/*", ".astro/types.d.ts"],
+ + "include": [".astro/types.d.ts", "**/*"],
+ "exclude": ["dist"]
}
```
diff --git a/packages/astro/config.d.ts b/packages/astro/config.d.ts
index 2e4e72d797b2..de2a500c25b2 100644
--- a/packages/astro/config.d.ts
+++ b/packages/astro/config.d.ts
@@ -1,3 +1,4 @@
+///
type ViteUserConfig = import('vite').UserConfig;
type ViteUserConfigFn = import('vite').UserConfigFn;
type AstroUserConfig = import('./dist/types/public/config.js').AstroUserConfig;
diff --git a/packages/astro/e2e/fixtures/actions-blog/tsconfig.json b/packages/astro/e2e/fixtures/actions-blog/tsconfig.json
index 0d8f554cc0ff..695601ac83e4 100644
--- a/packages/astro/e2e/fixtures/actions-blog/tsconfig.json
+++ b/packages/astro/e2e/fixtures/actions-blog/tsconfig.json
@@ -5,6 +5,6 @@
"jsx": "react-jsx",
"jsxImportSource": "react"
},
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
\ No newline at end of file
diff --git a/packages/astro/e2e/fixtures/actions-react-19/tsconfig.json b/packages/astro/e2e/fixtures/actions-react-19/tsconfig.json
index 0d8f554cc0ff..695601ac83e4 100644
--- a/packages/astro/e2e/fixtures/actions-react-19/tsconfig.json
+++ b/packages/astro/e2e/fixtures/actions-react-19/tsconfig.json
@@ -5,6 +5,6 @@
"jsx": "react-jsx",
"jsxImportSource": "react"
},
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
\ No newline at end of file
diff --git a/packages/astro/e2e/fixtures/client-only/tsconfig.json b/packages/astro/e2e/fixtures/client-only/tsconfig.json
index ea5145d3093a..ebc65eda2e0f 100644
--- a/packages/astro/e2e/fixtures/client-only/tsconfig.json
+++ b/packages/astro/e2e/fixtures/client-only/tsconfig.json
@@ -2,6 +2,6 @@
"compilerOptions": {
"importsNotUsedAsValues": "error"
},
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
\ No newline at end of file
diff --git a/packages/astro/e2e/fixtures/custom-client-directives/tsconfig.json b/packages/astro/e2e/fixtures/custom-client-directives/tsconfig.json
index 97a67903ae0d..71f0e7fe4f48 100644
--- a/packages/astro/e2e/fixtures/custom-client-directives/tsconfig.json
+++ b/packages/astro/e2e/fixtures/custom-client-directives/tsconfig.json
@@ -4,6 +4,6 @@
// This is only needed because we link Astro locally.
"preserveSymlinks": true
},
- "include": ["./src/**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "./src/**/*"],
"exclude": ["dist"]
}
\ No newline at end of file
diff --git a/packages/astro/performance/fixtures/md/tsconfig.json b/packages/astro/performance/fixtures/md/tsconfig.json
index 98ab98bc4c3e..c73e9d54b5c2 100644
--- a/packages/astro/performance/fixtures/md/tsconfig.json
+++ b/packages/astro/performance/fixtures/md/tsconfig.json
@@ -4,6 +4,6 @@
"jsx": "react-jsx",
"jsxImportSource": "react"
},
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
\ No newline at end of file
diff --git a/packages/astro/performance/fixtures/mdoc/tsconfig.json b/packages/astro/performance/fixtures/mdoc/tsconfig.json
index 98ab98bc4c3e..c73e9d54b5c2 100644
--- a/packages/astro/performance/fixtures/mdoc/tsconfig.json
+++ b/packages/astro/performance/fixtures/mdoc/tsconfig.json
@@ -4,6 +4,6 @@
"jsx": "react-jsx",
"jsxImportSource": "react"
},
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
\ No newline at end of file
diff --git a/packages/astro/performance/fixtures/mdx/tsconfig.json b/packages/astro/performance/fixtures/mdx/tsconfig.json
index 98ab98bc4c3e..c73e9d54b5c2 100644
--- a/packages/astro/performance/fixtures/mdx/tsconfig.json
+++ b/packages/astro/performance/fixtures/mdx/tsconfig.json
@@ -4,6 +4,6 @@
"jsx": "react-jsx",
"jsxImportSource": "react"
},
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
\ No newline at end of file
diff --git a/packages/astro/performance/fixtures/utils/tsconfig.json b/packages/astro/performance/fixtures/utils/tsconfig.json
index 5851e5189ac9..5f80c89c3c5b 100644
--- a/packages/astro/performance/fixtures/utils/tsconfig.json
+++ b/packages/astro/performance/fixtures/utils/tsconfig.json
@@ -3,6 +3,6 @@
"jsx": "react-jsx",
"jsxImportSource": "react"
},
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
diff --git a/packages/astro/test/fixtures/alias-tsconfig-baseurl-only/tsconfig.json b/packages/astro/test/fixtures/alias-tsconfig-baseurl-only/tsconfig.json
index 0c7d303e8e82..f70cd9c54221 100644
--- a/packages/astro/test/fixtures/alias-tsconfig-baseurl-only/tsconfig.json
+++ b/packages/astro/test/fixtures/alias-tsconfig-baseurl-only/tsconfig.json
@@ -2,6 +2,6 @@
"compilerOptions": {
"baseUrl": "./src"
},
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
diff --git a/packages/astro/test/fixtures/alias-tsconfig/tsconfig.json b/packages/astro/test/fixtures/alias-tsconfig/tsconfig.json
index 1598f5fa3174..e4507cabba7f 100644
--- a/packages/astro/test/fixtures/alias-tsconfig/tsconfig.json
+++ b/packages/astro/test/fixtures/alias-tsconfig/tsconfig.json
@@ -14,6 +14,6 @@
]
}
},
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
diff --git a/packages/astro/test/fixtures/astro-env-content-collections/tsconfig.json b/packages/astro/test/fixtures/astro-env-content-collections/tsconfig.json
index d2e51fb463de..f11a46c8e5fb 100644
--- a/packages/astro/test/fixtures/astro-env-content-collections/tsconfig.json
+++ b/packages/astro/test/fixtures/astro-env-content-collections/tsconfig.json
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
diff --git a/packages/astro/test/fixtures/astro-env-required-public/tsconfig.json b/packages/astro/test/fixtures/astro-env-required-public/tsconfig.json
index d2e51fb463de..f11a46c8e5fb 100644
--- a/packages/astro/test/fixtures/astro-env-required-public/tsconfig.json
+++ b/packages/astro/test/fixtures/astro-env-required-public/tsconfig.json
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
diff --git a/packages/astro/test/fixtures/astro-env-server-fail/tsconfig.json b/packages/astro/test/fixtures/astro-env-server-fail/tsconfig.json
index d2e51fb463de..f11a46c8e5fb 100644
--- a/packages/astro/test/fixtures/astro-env-server-fail/tsconfig.json
+++ b/packages/astro/test/fixtures/astro-env-server-fail/tsconfig.json
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
diff --git a/packages/astro/test/fixtures/astro-env-server-secret/tsconfig.json b/packages/astro/test/fixtures/astro-env-server-secret/tsconfig.json
index d2e51fb463de..f11a46c8e5fb 100644
--- a/packages/astro/test/fixtures/astro-env-server-secret/tsconfig.json
+++ b/packages/astro/test/fixtures/astro-env-server-secret/tsconfig.json
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
diff --git a/packages/astro/test/fixtures/astro-env/tsconfig.json b/packages/astro/test/fixtures/astro-env/tsconfig.json
index d2e51fb463de..f11a46c8e5fb 100644
--- a/packages/astro/test/fixtures/astro-env/tsconfig.json
+++ b/packages/astro/test/fixtures/astro-env/tsconfig.json
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
diff --git a/packages/astro/test/fixtures/core-image-base/tsconfig.json b/packages/astro/test/fixtures/core-image-base/tsconfig.json
index b47976e21c42..ff44eda8dc0e 100644
--- a/packages/astro/test/fixtures/core-image-base/tsconfig.json
+++ b/packages/astro/test/fixtures/core-image-base/tsconfig.json
@@ -8,6 +8,6 @@
]
},
},
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
diff --git a/packages/astro/test/fixtures/core-image-deletion/tsconfig.json b/packages/astro/test/fixtures/core-image-deletion/tsconfig.json
index 074b459078ff..c193287fccd6 100644
--- a/packages/astro/test/fixtures/core-image-deletion/tsconfig.json
+++ b/packages/astro/test/fixtures/core-image-deletion/tsconfig.json
@@ -6,6 +6,6 @@
"~/assets/*": ["src/assets/*"]
},
},
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
diff --git a/packages/astro/test/fixtures/core-image-infersize/tsconfig.json b/packages/astro/test/fixtures/core-image-infersize/tsconfig.json
index 1e6aa1b676cd..2124752725b7 100644
--- a/packages/astro/test/fixtures/core-image-infersize/tsconfig.json
+++ b/packages/astro/test/fixtures/core-image-infersize/tsconfig.json
@@ -3,6 +3,6 @@
"compilerOptions": {
"baseUrl": ".",
},
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
diff --git a/packages/astro/test/fixtures/core-image-remark-imgattr/tsconfig.json b/packages/astro/test/fixtures/core-image-remark-imgattr/tsconfig.json
index 1e6aa1b676cd..2124752725b7 100644
--- a/packages/astro/test/fixtures/core-image-remark-imgattr/tsconfig.json
+++ b/packages/astro/test/fixtures/core-image-remark-imgattr/tsconfig.json
@@ -3,6 +3,6 @@
"compilerOptions": {
"baseUrl": ".",
},
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
diff --git a/packages/astro/test/fixtures/core-image-ssg/tsconfig.json b/packages/astro/test/fixtures/core-image-ssg/tsconfig.json
index 074b459078ff..c193287fccd6 100644
--- a/packages/astro/test/fixtures/core-image-ssg/tsconfig.json
+++ b/packages/astro/test/fixtures/core-image-ssg/tsconfig.json
@@ -6,6 +6,6 @@
"~/assets/*": ["src/assets/*"]
},
},
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
diff --git a/packages/astro/test/fixtures/core-image-unconventional-settings/tsconfig.json b/packages/astro/test/fixtures/core-image-unconventional-settings/tsconfig.json
index 074b459078ff..c193287fccd6 100644
--- a/packages/astro/test/fixtures/core-image-unconventional-settings/tsconfig.json
+++ b/packages/astro/test/fixtures/core-image-unconventional-settings/tsconfig.json
@@ -6,6 +6,6 @@
"~/assets/*": ["src/assets/*"]
},
},
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
diff --git a/packages/astro/test/fixtures/core-image/tsconfig.json b/packages/astro/test/fixtures/core-image/tsconfig.json
index b47976e21c42..ff44eda8dc0e 100644
--- a/packages/astro/test/fixtures/core-image/tsconfig.json
+++ b/packages/astro/test/fixtures/core-image/tsconfig.json
@@ -8,6 +8,6 @@
]
},
},
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
diff --git a/packages/astro/test/fixtures/react-and-solid/tsconfig.json b/packages/astro/test/fixtures/react-and-solid/tsconfig.json
index d5f1fa6e4c05..7679248b0276 100644
--- a/packages/astro/test/fixtures/react-and-solid/tsconfig.json
+++ b/packages/astro/test/fixtures/react-and-solid/tsconfig.json
@@ -4,6 +4,6 @@
"jsxImportSource": "solid-js",
"types": ["astro/client"]
},
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
diff --git a/packages/astro/test/fixtures/ssr-prerender-chunks/tsconfig.json b/packages/astro/test/fixtures/ssr-prerender-chunks/tsconfig.json
index 98ab98bc4c3e..c73e9d54b5c2 100644
--- a/packages/astro/test/fixtures/ssr-prerender-chunks/tsconfig.json
+++ b/packages/astro/test/fixtures/ssr-prerender-chunks/tsconfig.json
@@ -4,6 +4,6 @@
"jsx": "react-jsx",
"jsxImportSource": "react"
},
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
\ No newline at end of file
diff --git a/packages/db/test/fixtures/ticketing-example/tsconfig.json b/packages/db/test/fixtures/ticketing-example/tsconfig.json
index 9d7495d5bac1..2424dae7d70c 100644
--- a/packages/db/test/fixtures/ticketing-example/tsconfig.json
+++ b/packages/db/test/fixtures/ticketing-example/tsconfig.json
@@ -4,6 +4,6 @@
"jsx": "react-jsx",
"jsxImportSource": "react"
},
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
diff --git a/packages/integrations/markdoc/test/fixtures/image-assets/tsconfig.json b/packages/integrations/markdoc/test/fixtures/image-assets/tsconfig.json
index 074b459078ff..c193287fccd6 100644
--- a/packages/integrations/markdoc/test/fixtures/image-assets/tsconfig.json
+++ b/packages/integrations/markdoc/test/fixtures/image-assets/tsconfig.json
@@ -6,6 +6,6 @@
"~/assets/*": ["src/assets/*"]
},
},
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
diff --git a/packages/integrations/markdoc/test/fixtures/render-with-components/tsconfig.json b/packages/integrations/markdoc/test/fixtures/render-with-components/tsconfig.json
index 7c03d38d1fc9..f993eddf652e 100644
--- a/packages/integrations/markdoc/test/fixtures/render-with-components/tsconfig.json
+++ b/packages/integrations/markdoc/test/fixtures/render-with-components/tsconfig.json
@@ -4,6 +4,6 @@
"jsx": "react-jsx",
"jsxImportSource": "preact"
},
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
\ No newline at end of file
diff --git a/packages/integrations/mdx/test/fixtures/mdx-images/tsconfig.json b/packages/integrations/mdx/test/fixtures/mdx-images/tsconfig.json
index 074b459078ff..c193287fccd6 100644
--- a/packages/integrations/mdx/test/fixtures/mdx-images/tsconfig.json
+++ b/packages/integrations/mdx/test/fixtures/mdx-images/tsconfig.json
@@ -6,6 +6,6 @@
"~/assets/*": ["src/assets/*"]
},
},
- "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}