Skip to content

Commit 1118ac4

Browse files
feat: update tsconfig template to prepare for TS 6 (#15668)
1 parent 6fd3889 commit 1118ac4

60 files changed

Lines changed: 60 additions & 75 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/kind-hairs-report.md

Lines changed: 5 additions & 0 deletions

.github/scripts/bundle-size.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ async function bundle(files) {
7575
bundle: true,
7676
minify: true,
7777
sourcemap: false,
78-
target: ['es2018'],
78+
target: ['esnext'],
7979
outdir: 'out',
8080
external: ['astro:*', 'aria-query', 'axobject-query'],
8181
metafile: true,

benchmark/packages/adapter/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"extends": "../../../tsconfig.base.json",
33
"include": ["src"],
44
"compilerOptions": {
5+
"rootDir": "./src",
56
"outDir": "./dist"
67
}
78
}

benchmark/packages/timer/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"extends": "../../../tsconfig.base.json",
33
"include": ["src"],
44
"compilerOptions": {
5+
"rootDir": "./src",
56
"outDir": "./dist"
67
}
78
}

examples/portfolio/src/components/Nav.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ const isCurrentPage = (href: string) => {
124124
};
125125

126126
// Toggle menu visibility when the menu button is clicked.
127-
btn.addEventListener('click', () => setExpanded(menu.hidden));
127+
btn.addEventListener('click', () => setExpanded(menu.hidden === true));
128128

129129
// Hide menu button for large screens.
130130
const handleViewports = (e: MediaQueryList | MediaQueryListEvent) => {

examples/toolbar-app/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "astro/tsconfigs/strict",
33
"compilerOptions": {
4-
"outDir": "dist",
5-
"rootDir": "src"
4+
"outDir": "./dist",
5+
"rootDir": "./src"
66
}
77
}

packages/astro-prism/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"extends": "../../tsconfig.base.json",
33
"include": ["src"],
44
"compilerOptions": {
5+
"rootDir": "./src",
56
"outDir": "./dist"
67
}
78
}

packages/astro-rss/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"extends": "../../tsconfig.base.json",
33
"include": ["src"],
44
"compilerOptions": {
5+
"rootDir": "./src",
56
"outDir": "./dist"
67
}
78
}

packages/astro/src/vite-plugin-config-alias/README.md

Lines changed: 1 addition & 2 deletions

packages/astro/test/fixtures/alias-tsconfig/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"compilerOptions": {
3+
// TODO: remove when upgrading to TS 6
34
"baseUrl": ".",
45
"paths": {
56
"@components/*": [

0 commit comments

Comments
 (0)