Skip to content

Commit 346e0f2

Browse files
committed
build: update to TypeScript 4.6 (#24565)
Updates the repo to the latest version of Angular and TypeScript 4.6.
1 parent 34aa846 commit 346e0f2

File tree

8 files changed

+372
-349
lines changed

8 files changed

+372
-349
lines changed

WORKSPACE

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,6 @@ node_repositories(
5959
package_json = ["//:package.json"],
6060
)
6161

62-
load("@build_bazel_rules_nodejs//nodejs:repositories.bzl", "nodejs_register_toolchains")
63-
64-
# This call sets up another repository for Node 12.x used in integration tests. This
65-
# allows us to ensure our schematic code works with NodeJS v12 LTS. The Node v12.x
66-
# version is not fetched unless explicitly requested by the tests.
67-
nodejs_register_toolchains(
68-
name = "node12",
69-
node_version = "12.20.0",
70-
)
71-
7262
load("//tools:integration.bzl", "create_npm_package_archive_build_file")
7363

7464
yarn_install(

integration/ng-add/BUILD.bazel

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,3 @@ node_integration_test(
2929
"requires-network",
3030
],
3131
)
32-
33-
node_integration_test(
34-
name = "test_node12",
35-
srcs = glob(["**/*"]),
36-
commands = [
37-
# Note: We use a cache folder within the integration test as otherwise
38-
# the NPM package mapped archive would be cached in the system.
39-
# See: https://github.com/yarnpkg/yarn/issues/2165.
40-
# TODO(devversion): determine if a solution/workaround could live in the test runner.
41-
"yarn install --cache-folder .yarn_cache_folder/",
42-
"yarn ng add @angular/material",
43-
"yarn test",
44-
],
45-
node_repository = "node12_host",
46-
npm_packages = npmPackageMappings,
47-
setup_chromium = True,
48-
tags = [
49-
# This test relies on `yarn` so there needs to be internet access.
50-
"requires-network",
51-
],
52-
)

integration/ng-update-v13/BUILD.bazel

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,3 @@ node_integration_test(
2727
"requires-network",
2828
],
2929
)
30-
31-
node_integration_test(
32-
name = "test_node12",
33-
srcs = glob(["**/*"]),
34-
commands = [
35-
# Note: We use a cache folder within the integration test as otherwise
36-
# the NPM package mapped archive would be cached in the system.
37-
# See: https://github.com/yarnpkg/yarn/issues/2165.
38-
# TODO(devversion): determine if a solution/workaround could live in the test runner.
39-
"yarn install --cache-folder .yarn_cache_folder/",
40-
"yarn test",
41-
],
42-
node_repository = "node12_host",
43-
npm_packages = npmPackageMappings,
44-
tags = [
45-
# This test relies on `yarn` so there needs to be internet access.
46-
"requires-network",
47-
],
48-
)

integration/ts-compat/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ write_file(
1414
# The list contains NPM module names that resolve to the desired TypeScript version.
1515
typescript_version_packages = [
1616
"typescript-4.4",
17+
"typescript-4.5",
1718
"typescript",
1819
]
1920

package.json

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@
5454
},
5555
"version": "13.2.6",
5656
"dependencies": {
57-
"@angular/animations": "13.2.0",
58-
"@angular/common": "13.2.0",
59-
"@angular/compiler": "13.2.0",
60-
"@angular/core": "13.2.0",
61-
"@angular/forms": "13.2.0",
62-
"@angular/platform-browser": "13.2.0",
57+
"@angular/animations": "13.3.0",
58+
"@angular/common": "13.3.0",
59+
"@angular/compiler": "13.3.0",
60+
"@angular/core": "13.3.0",
61+
"@angular/forms": "13.3.0",
62+
"@angular/platform-browser": "13.3.0",
6363
"@types/google.maps": "^3.47.3",
6464
"@types/youtube": "^0.0.46",
6565
"material-components-web": "14.0.0-canary.9736ddce9.0",
@@ -69,17 +69,17 @@
6969
"zone.js": "~0.11.4"
7070
},
7171
"devDependencies": {
72-
"@angular-devkit/build-angular": "13.2.0",
73-
"@angular-devkit/core": "13.2.0",
74-
"@angular-devkit/schematics": "13.2.0",
75-
"@angular/bazel": "13.2.0",
76-
"@angular/cli": "13.2.0",
77-
"@angular/compiler-cli": "13.2.0",
72+
"@angular-devkit/build-angular": "13.3.0",
73+
"@angular-devkit/core": "13.3.0",
74+
"@angular-devkit/schematics": "13.3.0",
75+
"@angular/bazel": "13.3.0",
76+
"@angular/cli": "13.3.0",
77+
"@angular/compiler-cli": "13.3.0",
7878
"@angular/dev-infra-private": "https://github.com/angular/dev-infra-private-builds.git#7544378ad9aa94cdfe256aaaa923c107f45175a2",
79-
"@angular/localize": "13.2.0",
80-
"@angular/platform-browser-dynamic": "13.2.0",
81-
"@angular/platform-server": "13.2.0",
82-
"@angular/router": "13.2.0",
79+
"@angular/localize": "13.3.0",
80+
"@angular/platform-browser-dynamic": "13.3.0",
81+
"@angular/platform-server": "13.3.0",
82+
"@angular/router": "13.3.0",
8383
"@axe-core/webdriverjs": "^4.3.2",
8484
"@babel/core": "^7.16.12",
8585
"@bazel/bazelisk": "1.11.0",
@@ -144,7 +144,7 @@
144144
"@octokit/rest": "18.3.5",
145145
"@rollup/plugin-commonjs": "^21.0.0",
146146
"@rollup/plugin-node-resolve": "^13.1.3",
147-
"@schematics/angular": "13.2.0",
147+
"@schematics/angular": "13.3.0",
148148
"@types/babel__core": "^7.1.18",
149149
"@types/browser-sync": "^2.26.3",
150150
"@types/fs-extra": "^9.0.13",
@@ -215,17 +215,18 @@
215215
"tsickle": "0.39.1",
216216
"tslint": "^6.1.3",
217217
"tsutils": "^3.21.0",
218-
"typescript": "~4.5.5",
218+
"typescript": "~4.6.2",
219219
"typescript-4.4": "npm:typescript@4.4.2",
220+
"typescript-4.5": "npm:typescript@4.5.5",
220221
"vrsource-tslint-rules": "6.0.0",
221222
"yaml": "^1.10.2",
222223
"yargs": "^17.3.1",
223224
"zx": "^4.3.0"
224225
},
225226
"resolutions": {
226-
"@angular/dev-infra-private/typescript": "~4.5.2",
227+
"@angular/dev-infra-private/typescript": "~4.6.2",
227228
"browser-sync-client": "2.26.13",
228-
"dgeni-packages/typescript": "4.5.2",
229+
"dgeni-packages/typescript": "4.6.2",
229230
"**/https-proxy-agent": "5.0.0"
230231
}
231232
}

scripts/caretaking/firebase-functions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"firebase-functions": "^3.11.0"
1212
},
1313
"devDependencies": {
14-
"typescript": "^4.5.2",
14+
"typescript": "^4.6.2",
1515
"firebase-tools": "^8.6.0"
1616
},
1717
"private": true

scripts/caretaking/firebase-functions/yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4546,7 +4546,7 @@ typedarray-to-buffer@^3.1.5:
45464546
dependencies:
45474547
is-typedarray "^1.0.0"
45484548

4549-
typescript@^4.5.2:
4549+
typescript@^4.6.2:
45504550
version "4.6.2"
45514551
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.6.2.tgz#fe12d2727b708f4eef40f51598b3398baa9611d4"
45524552
integrity sha512-HM/hFigTBHZhLXshn9sN37H085+hQGeJHJ/X7LpBWLID/fbc2acUMfU+lGD98X81sKP+pFa9f0DZmCwB9GnbAg==

0 commit comments

Comments
 (0)