Skip to content

Commit 8df0350

Browse files
authored
build: update to latest ts-api-guardian version (#18330)
Updates to the newly released ts-api-guardian version. This removes the long-standing typescript peer dependency warning, and also allows us to remove a recently added workaround.
1 parent 05f59b3 commit 8df0350

File tree

4 files changed

+7
-24
lines changed

4 files changed

+7
-24
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
"shelljs": "^0.8.3",
146146
"stylelint": "^12.0.0",
147147
"terser": "^4.3.9",
148-
"ts-api-guardian": "^0.4.6",
148+
"ts-api-guardian": "^0.5.0",
149149
"ts-node": "^3.0.4",
150150
"tsickle": "0.38.0",
151151
"tslint": "^5.20.0",

tools/bazel/postinstall-patches.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ const path = require('path');
99
const fs = require('fs');
1010

1111
/**
12-
* Version of the post install patch. Needs to be incremented when patches
13-
* have been added or removed.
12+
* Version of the post install patch. Needs to be incremented when
13+
* existing patches or edits have been modified.
1414
*/
1515
const PATCH_VERSION = 2;
1616

@@ -37,10 +37,6 @@ try {
3737
applyPatch(path.join(__dirname, './angular_bazel_rules_nodejs_1.0.0.patch'));
3838
} catch (_) {}
3939

40-
// Temporary patch for ts-api-guardian to be compatible with rules_nodejs 1.0.0.
41-
// TODO: a new ts-api-guardian release is needed.
42-
applyPatch(path.join(__dirname, './ts_api_guardian_rules_nodejs_1.0.0.patch'));
43-
4440
// Workaround for https://github.com/angular/angular/issues/30586. It's not possible to
4541
// enable tsickle decorator processing without enabling import rewriting to closure.
4642
// This replacement allows us to enable decorator processing without rewriting imports.

tools/bazel/ts_api_guardian_rules_nodejs_1.0.0.patch

Lines changed: 0 additions & 13 deletions
This file was deleted.

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11275,10 +11275,10 @@ try-require@^1.0.0:
1127511275
resolved "https://registry.yarnpkg.com/try-require/-/try-require-1.2.1.tgz#34489a2cac0c09c1cc10ed91ba011594d4333be2"
1127611276
integrity sha1-NEiaLKwMCcHMEO2RugEVlNQzO+I=
1127711277

11278-
ts-api-guardian@^0.4.6:
11279-
version "0.4.6"
11280-
resolved "https://registry.yarnpkg.com/ts-api-guardian/-/ts-api-guardian-0.4.6.tgz#ebd9a700b40de6ca4dbc5c468e322fe86476b6db"
11281-
integrity sha512-V+AVEe4HCi3j0mKrvSBNZN6zoY0eIw2r9vcWrqu4vhGlpASgPTSwuPHtxctx4qMBH5ieyqO6rf1LrQfsr8s5tw==
11278+
ts-api-guardian@^0.5.0:
11279+
version "0.5.0"
11280+
resolved "https://registry.yarnpkg.com/ts-api-guardian/-/ts-api-guardian-0.5.0.tgz#1b63546dfd61581054802bdc8d5915ceebcc2c35"
11281+
integrity sha512-BjVlb23FUqWU+wmdHkLdaHcllU+v/Cca26sY40bCkM15BCF2yc17daOm+UXyvxQ9NndPM/40m+X+GLyDkrE9tA==
1128211282
dependencies:
1128311283
chalk "^2.3.1"
1128411284
diff "^3.5.0"

0 commit comments

Comments
 (0)