Skip to content

Commit b076a6f

Browse files
crisbetoclydin
authored andcommitted
build: update to TypeScript 5.1
Bumps up the dev depdencies to TypeScript 5.1-beta and expands the allowed version ranges to prepare for the final release.
1 parent a11ac7a commit b076a6f

File tree

11 files changed

+15833
-14708
lines changed

11 files changed

+15833
-14708
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@
203203
"tree-kill": "1.2.2",
204204
"ts-node": "^10.9.1",
205205
"tslib": "2.5.2",
206-
"typescript": "~5.0.2",
206+
"typescript": "5.1.0-beta",
207207
"verdaccio": "5.24.1",
208208
"verdaccio-auth-memory": "^10.0.0",
209209
"vite": "4.3.8",

packages/angular_devkit/build_angular/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"ng-packagr": "^16.0.0 || ^16.1.0-next.0",
8686
"protractor": "^7.0.0",
8787
"tailwindcss": "^2.0.0 || ^3.0.0",
88-
"typescript": ">=4.9.3 <5.1"
88+
"typescript": ">=4.9.3 <5.2"
8989
},
9090
"peerDependenciesMeta": {
9191
"@angular/localize": {

packages/angular_devkit/build_angular/test/hello-world-app/tsconfig.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@
88
"moduleResolution": "node",
99
"emitDecoratorMetadata": true,
1010
"experimentalDecorators": true,
11+
"skipLibCheck": true,
1112
"target": "es2022",
1213
"module": "es2022",
1314
"useDefineForClassFields": false,
14-
"typeRoots": [
15-
"node_modules/@types"
16-
],
1715
"lib": [
1816
"es2022",
1917
"dom"

packages/angular_devkit/build_angular/test/hello-world-lib/tsconfig.json

-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
"target": "es2015",
1111
"module": "es2022",
1212
"useDefineForClassFields": false,
13-
"typeRoots": [
14-
"node_modules/@types"
15-
],
1613
"lib": [
1714
"es2022",
1815
"dom"

packages/angular_devkit/build_webpack/test/angular-app/tsconfig.json

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"emitDecoratorMetadata": true,
1010
"experimentalDecorators": true,
1111
"target": "es2022",
12-
"typeRoots": ["node_modules/@types"],
1312
"lib": ["es2022", "dom"]
1413
},
1514
"angularCompilerOptions": {

packages/angular_devkit/build_webpack/test/basic-app/tsconfig.json

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"experimentalDecorators": true,
1010
"target": "es2022",
1111
"module": "esnext",
12-
"typeRoots": ["node_modules/@types"],
1312
"lib": ["es2022", "dom"]
1413
},
1514
"angularCompilerOptions": {

packages/ngtools/webpack/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323
"dependencies": {},
2424
"peerDependencies": {
2525
"@angular/compiler-cli": "^16.0.0 || ^16.1.0-next.0",
26-
"typescript": ">=4.9.3 <5.1",
26+
"typescript": ">=4.9.3 <5.2",
2727
"webpack": "^5.54.0"
2828
},
2929
"devDependencies": {
3030
"@angular-devkit/core": "0.0.0-PLACEHOLDER",
3131
"@angular/compiler": "16.1.0-next.1",
3232
"@angular/compiler-cli": "16.1.0-next.1",
33-
"typescript": "~5.0.2",
33+
"typescript": "5.1.0-beta",
3434
"webpack": "5.83.1"
3535
}
3636
}

packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/BUILD.bazel

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
load("//tools:defaults.bzl", "ts_library")
22

3-
# files fetched on 2023-03-17 from
4-
# https://github.com/microsoft/TypeScript/releases/tag/v5.0.2
3+
# files fetched on 2023-05-22 from
4+
# https://github.com/microsoft/TypeScript/releases/tag/v5.1-beta
55

66
# Commands to download:
7-
# curl https://raw.githubusercontent.com/microsoft/TypeScript/v5.0.2/lib/typescript.d.ts -o packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript.d.ts
8-
# curl https://raw.githubusercontent.com/microsoft/TypeScript/v5.0.2/lib/typescript.js -o packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript.js
7+
# curl https://raw.githubusercontent.com/microsoft/TypeScript/v5.1-beta/lib/typescript.d.ts -o packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript.d.ts
8+
# curl https://raw.githubusercontent.com/microsoft/TypeScript/v5.1-beta/lib/typescript.js -o packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript.js
99

1010
licenses(["notice"]) # Apache 2.0
1111

0 commit comments

Comments
 (0)