Skip to content

Commit 81cabc1

Browse files
crisbetomattrbeck
authored andcommitted
feat(core): add support for TypeScript 6
Updates the project to support TypeScript 6 and accounts for some of the breakages.
1 parent 9f4c025 commit 81cabc1

70 files changed

Lines changed: 494 additions & 252 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.

MODULE.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,9 @@ use_repo(npm, "npm")
117117
rules_ts_ext = use_extension("@aspect_rules_ts//ts:extensions.bzl", "ext")
118118
rules_ts_ext.deps(
119119
name = "angular_npm_typescript",
120-
# Obtained by: curl --silent https://registry.npmjs.org/typescript/5.9.3 | jq -r '.dist.integrity'
121-
ts_integrity = "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
122-
ts_version = "5.9.3",
120+
# Obtained by: curl --silent https://registry.npmjs.org/typescript/6.0.0-beta | jq -r '.dist.integrity'
121+
ts_integrity = "sha512-CldZdztDpQRLM1HC6WDQjQkQN5Ub5zRau737a1diGh3lPmb9oRsaWHk1y5iqK0o7+1bNJ0oXfEGRkAogFZBL+Q==",
122+
ts_version = "6.0.0-beta",
123123
)
124124
use_repo(rules_ts_ext, **{"npm_typescript": "angular_npm_typescript"})
125125

MODULE.bazel.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

adev/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"style-mod": "4.1.3",
7575
"tinyglobby": "0.2.15",
7676
"tslib": "2.8.1",
77-
"typescript": "5.9.3",
77+
"typescript": "6.0.0-beta",
7878
"w3c-keyname": "2.2.8"
7979
},
8080
"devDependencies": {

adev/scripts/routes/BUILD.bazel

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ ts_project(
1919
tsconfig = {
2020
"compilerOptions": {
2121
"target": "ES2022",
22-
"moduleResolution": "node",
22+
"module": "nodenext",
23+
"moduleResolution": "nodenext",
2324
"types": ["node"],
2425
"rootDir": ".",
2526
"skipLibCheck": True,

adev/scripts/routes/generate-routes.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import {ALL_ITEMS} from '../../src/app/routing/navigation-entries';
9+
import {ALL_ITEMS} from '../../src/app/routing/navigation-entries/index.js';
1010
import {NavigationItem} from '@angular/docs';
1111
import {writeFileSync, readFileSync} from 'fs';
1212
import {join, resolve} from 'path';

adev/src/app/routing/navigation-entries/BUILD.bazel

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ ts_project(
99
tsconfig = {
1010
"compilerOptions": {
1111
"target": "ES2022",
12-
"moduleResolution": "node",
12+
"module": "nodenext",
13+
"moduleResolution": "nodenext",
1314
"types": ["node"],
1415
"rootDir": ".",
1516
"skipLibCheck": True,

adev/src/context/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"sourceMap": true,
77
"module": "esnext",
88
"moduleResolution": "node",
9-
"target": "esnext",
9+
"target": "es2022",
1010
"types": ["node"],
1111
"paths": {}
1212
}

integration/cli-hello-world-ivy-i18n/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"compileOnSave": false,
33
"compilerOptions": {
4-
"baseUrl": "./",
54
"outDir": "./dist/out-tsc",
65
"sourceMap": true,
76
"esModuleInterop": true,

integration/cli-hello-world-lazy/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"compileOnSave": false,
33
"compilerOptions": {
4-
"baseUrl": "./",
54
"outDir": "./dist/out-tsc",
65
"sourceMap": true,
76
"esModuleInterop": true,

integration/cli-hello-world/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"compileOnSave": false,
33
"compilerOptions": {
4-
"baseUrl": "./",
54
"outDir": "./dist/out-tsc",
65
"sourceMap": true,
76
"esModuleInterop": true,

0 commit comments

Comments
 (0)