Skip to content

Commit

Permalink
fix: swap include order
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-lefebvre committed Sep 9, 2024
1 parent fd7e284 commit 62dd4f0
Show file tree
Hide file tree
Showing 56 changed files with 57 additions and 57 deletions.
2 changes: 1 addition & 1 deletion .changeset/old-zebras-teach.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
```
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"editor.defaultFormatter": "biomejs.biome"
},
"editor.codeActionsOnSave": {
"quickFix.biome": true,
"source.fixAll.biome": true
"quickFix.biome": "explicit",
"source.fixAll.biome": "explicit"
}
}
2 changes: 1 addition & 1 deletion examples/basics/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
2 changes: 1 addition & 1 deletion examples/component/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "astro/tsconfigs/base",
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"],
"compilerOptions": {
"jsx": "preserve"
Expand Down
2 changes: 1 addition & 1 deletion examples/container-with-vitest/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
2 changes: 1 addition & 1 deletion examples/framework-alpine/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
2 changes: 1 addition & 1 deletion examples/framework-multiple/tsconfig.json
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/framework-preact/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "astro/tsconfigs/base",
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"],
"compilerOptions": {
// Preact specific settings
Expand Down
2 changes: 1 addition & 1 deletion examples/framework-react/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "astro/tsconfigs/base",
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"],
"compilerOptions": {
"jsx": "react-jsx",
Expand Down
2 changes: 1 addition & 1 deletion examples/framework-solid/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "astro/tsconfigs/base",
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"],
"compilerOptions": {
// Solid specific settings
Expand Down
2 changes: 1 addition & 1 deletion examples/framework-svelte/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
2 changes: 1 addition & 1 deletion examples/framework-vue/tsconfig.json
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/hackernews/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
2 changes: 1 addition & 1 deletion examples/middleware/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
2 changes: 1 addition & 1 deletion examples/minimal/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
2 changes: 1 addition & 1 deletion examples/non-html-pages/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
2 changes: 1 addition & 1 deletion examples/portfolio/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
2 changes: 1 addition & 1 deletion examples/ssr/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
2 changes: 1 addition & 1 deletion examples/starlog/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/strict",
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
2 changes: 1 addition & 1 deletion examples/view-transitions/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "astro/tsconfigs/base",
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"],
"compilerOptions": {
"resolveJsonModule": true
Expand Down
2 changes: 1 addition & 1 deletion examples/with-markdoc/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "astro/tsconfigs/base",
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"],
"compilerOptions": {
"strictNullChecks": true
Expand Down
2 changes: 1 addition & 1 deletion examples/with-markdown-plugins/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
2 changes: 1 addition & 1 deletion examples/with-markdown-shiki/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
2 changes: 1 addition & 1 deletion examples/with-mdx/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
2 changes: 1 addition & 1 deletion examples/with-nanostores/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "astro/tsconfigs/base",
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"],
"compilerOptions": {
// Preact specific settings
Expand Down
2 changes: 1 addition & 1 deletion examples/with-tailwindcss/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
2 changes: 1 addition & 1 deletion examples/with-vitest/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
2 changes: 1 addition & 1 deletion packages/astro/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
```diff
{
"extends": "astro/tsconfigs/base",
+ "include": ["**/*", ".astro/types.d.ts"],
+ "include": [".astro/types.d.ts", "**/*"],
+ "exclude": ["dist"]
}
```
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/e2e/fixtures/actions-blog/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"jsx": "react-jsx",
"jsxImportSource": "react"
},
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
2 changes: 1 addition & 1 deletion packages/astro/e2e/fixtures/actions-react-19/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"jsx": "react-jsx",
"jsxImportSource": "react"
},
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
2 changes: 1 addition & 1 deletion packages/astro/e2e/fixtures/client-only/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"compilerOptions": {
"importsNotUsedAsValues": "error"
},
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
2 changes: 1 addition & 1 deletion packages/astro/performance/fixtures/md/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"jsx": "react-jsx",
"jsxImportSource": "react"
},
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
2 changes: 1 addition & 1 deletion packages/astro/performance/fixtures/mdoc/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"jsx": "react-jsx",
"jsxImportSource": "react"
},
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
2 changes: 1 addition & 1 deletion packages/astro/performance/fixtures/mdx/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"jsx": "react-jsx",
"jsxImportSource": "react"
},
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
2 changes: 1 addition & 1 deletion packages/astro/performance/fixtures/utils/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"jsx": "react-jsx",
"jsxImportSource": "react"
},
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"compilerOptions": {
"baseUrl": "./src"
},
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
2 changes: 1 addition & 1 deletion packages/astro/test/fixtures/alias-tsconfig/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
]
}
},
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
2 changes: 1 addition & 1 deletion packages/astro/test/fixtures/astro-env/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/base",
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
2 changes: 1 addition & 1 deletion packages/astro/test/fixtures/core-image-base/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
]
},
},
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"~/assets/*": ["src/assets/*"]
},
},
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"compilerOptions": {
"baseUrl": ".",
},
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"compilerOptions": {
"baseUrl": ".",
},
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
2 changes: 1 addition & 1 deletion packages/astro/test/fixtures/core-image-ssg/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"~/assets/*": ["src/assets/*"]
},
},
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"~/assets/*": ["src/assets/*"]
},
},
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
2 changes: 1 addition & 1 deletion packages/astro/test/fixtures/core-image/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
]
},
},
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
2 changes: 1 addition & 1 deletion packages/astro/test/fixtures/react-and-solid/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"jsxImportSource": "solid-js",
"types": ["astro/client"]
},
"include": ["**/*", ".astro/types.d.ts"],
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
Loading

0 comments on commit 62dd4f0

Please sign in to comment.