Skip to content

Commit 74228fc

Browse files
alan-agius4alexeagle
authored andcommitted
build: use ts-api-guardian from npm
1 parent 8c2825b commit 74228fc

File tree

4 files changed

+13
-20
lines changed

4 files changed

+13
-20
lines changed

WORKSPACE

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -68,23 +68,6 @@ rules_sass_dependencies()
6868
load("@io_bazel_rules_sass//:defs.bzl", "sass_repositories")
6969
sass_repositories()
7070

71-
# Temporarily add the Angular repository so that we can set up "ts_api_guardian".
72-
# TODO(jelbourn): remove this once we can do all the same stuff via @npm//@angular
73-
http_archive(
74-
name = "angular",
75-
sha256 = "a542f00adf5cafbcad24268d69da8e4746c22619699f29c3b3b0259d0ce52974",
76-
url = "https://github.com/angular/angular/archive/8.0.0-beta.6.zip",
77-
strip_prefix = "angular-8.0.0-beta.6",
78-
)
79-
80-
# Only install the "ts-api-guardian" dependencies as we don't want to install the
81-
# Angular dev dependencies which are not needed.
82-
yarn_install(
83-
name = "ts-api-guardian_deps",
84-
package_json = "@angular//tools/ts-api-guardian:package.json",
85-
yarn_lock = "@angular//tools/ts-api-guardian:yarn.lock",
86-
)
87-
8871
# Bring in bazel_toolchains for RBE setup configuration.
8972
http_archive(
9073
name = "bazel_toolchains",

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@
134134
"selenium-webdriver": "^3.6.0",
135135
"sorcery": "^0.10.0",
136136
"stylelint": "^9.10.1",
137+
"ts-api-guardian": "^0.4.3",
137138
"ts-node": "^3.0.4",
138139
"tsconfig-paths": "^2.3.0",
139140
"tslint": "^5.13.1",

tools/public_api_guard/generate-guard-tests.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("@angular//tools/ts-api-guardian:index.bzl", "ts_api_guardian_test")
1+
load("@npm_ts_api_guardian//:index.bzl", "ts_api_guardian_test")
22

33
"""
44
Macro for generating ts-api-guardian Bazel test targets. Since there are multiple golden files

yarn.lock

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2645,7 +2645,7 @@ chalk@^1.0.0, chalk@^1.1.1, chalk@^1.1.3:
26452645
strip-ansi "^3.0.0"
26462646
supports-color "^2.0.0"
26472647

2648-
chalk@^2.4.2:
2648+
chalk@^2.3.1, chalk@^2.4.2:
26492649
version "2.4.2"
26502650
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424"
26512651
integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==
@@ -3760,7 +3760,7 @@ didyoumean@^1.2.1:
37603760
resolved "https://registry.yarnpkg.com/didyoumean/-/didyoumean-1.2.1.tgz#e92edfdada6537d484d73c0172fd1eba0c4976ff"
37613761
integrity sha1-6S7f2tplN9SE1zwBcv0eugxJdv8=
37623762

3763-
diff@^3.1.0, diff@^3.2.0:
3763+
diff@^3.1.0, diff@^3.2.0, diff@^3.5.0:
37643764
version "3.5.0"
37653765
resolved "https://registry.yarnpkg.com/diff/-/diff-3.5.0.tgz#800c0dd1e0a8bfbc95835c202ad220fe317e5a12"
37663766
integrity sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==
@@ -11145,6 +11145,15 @@ tryit@^1.0.1:
1114511145
resolved "https://registry.yarnpkg.com/tryit/-/tryit-1.0.3.tgz#393be730a9446fd1ead6da59a014308f36c289cb"
1114611146
integrity sha1-OTvnMKlEb9Hq1tpZoBQwjzbCics=
1114711147

11148+
ts-api-guardian@^0.4.3:
11149+
version "0.4.3"
11150+
resolved "https://registry.yarnpkg.com/ts-api-guardian/-/ts-api-guardian-0.4.3.tgz#d4aef4985e58f804147e68518b2102427392ad0d"
11151+
integrity sha512-UuT0VI+3jlKb+EjVontsw2h4Xn+e90sifGRpLduMjLo0sZE9lrI/cimMEcY0IMKXhloV6OeHNfJHuXvBGnIJfw==
11152+
dependencies:
11153+
chalk "^2.3.1"
11154+
diff "^3.5.0"
11155+
minimist "^1.2.0"
11156+
1114811157
ts-node@^3.0.4:
1114911158
version "3.3.0"
1115011159
resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-3.3.0.tgz#c13c6a3024e30be1180dd53038fc209289d4bf69"

0 commit comments

Comments
 (0)