Skip to content

Commit e1269cb

Browse files
Alan Agiusalexeagle
Alan Agius
authored andcommitted
build: use ts-api-guardian from npm
1 parent f53d5ec commit e1269cb

File tree

4 files changed

+12
-16
lines changed

4 files changed

+12
-16
lines changed

WORKSPACE

-14
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,6 @@ http_archive(
99
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/0.27.7/rules_nodejs-0.27.7.tar.gz"],
1010
)
1111

12-
# TS API Guardian resides in Angular
13-
http_archive(
14-
name = "angular",
15-
sha256 = "6af15858f480438a9ca3fa8eaf4fdf993ccae878b834f3ea72fa8442f76b73c2",
16-
strip_prefix = "angular-7.2.9",
17-
url = "https://github.com/angular/angular/archive/7.2.9.zip",
18-
)
19-
2012
# We use protocol buffers for the Build Event Protocol
2113
git_repository(
2214
name = "com_google_protobuf",
@@ -88,9 +80,3 @@ rules_karma_dependencies()
8880
load("@io_bazel_rules_webtesting//web:repositories.bzl", "web_test_repositories")
8981

9082
web_test_repositories()
91-
92-
yarn_install(
93-
name = "ts-api-guardian_deps",
94-
package_json = "@angular//tools/ts-api-guardian:package.json",
95-
yarn_lock = "@angular//tools/ts-api-guardian:yarn.lock",
96-
)

etc/api/BUILD

+1-1
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
[ts_api_guardian_test(
44
name = "%s_%s_%sapi" % (

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@
135135
"tar": "^4.4.4",
136136
"through2": "^2.0.3",
137137
"tree-kill": "^1.2.0",
138+
"ts-api-guardian": "0.4.2",
138139
"ts-node": "^5.0.0",
139140
"tslint-no-circular-imports": "^0.6.0",
140141
"tslint-sonarts": "1.9.0"

yarn.lock

+10-1
Original file line numberDiff line numberDiff line change
@@ -3058,7 +3058,7 @@ diagnostics@^1.1.1:
30583058
enabled "1.0.x"
30593059
kuler "1.0.x"
30603060

3061-
diff@^3.1.0, diff@^3.2.0:
3061+
diff@^3.1.0, diff@^3.2.0, diff@^3.5.0:
30623062
version "3.5.0"
30633063
resolved "https://registry.yarnpkg.com/diff/-/diff-3.5.0.tgz#800c0dd1e0a8bfbc95835c202ad220fe317e5a12"
30643064
integrity sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==
@@ -9480,6 +9480,15 @@ triple-beam@^1.2.0, triple-beam@^1.3.0:
94809480
resolved "https://registry.yarnpkg.com/triple-beam/-/triple-beam-1.3.0.tgz#a595214c7298db8339eeeee083e4d10bd8cb8dd9"
94819481
integrity sha512-XrHUvV5HpdLmIj4uVMxHggLbFSZYIn7HEWsqePZcI50pco+MPqJ50wMGY794X7AOOhxOBAjbkqfAbEe/QMp2Lw==
94829482

9483+
9484+
version "0.4.2"
9485+
resolved "https://registry.yarnpkg.com/ts-api-guardian/-/ts-api-guardian-0.4.2.tgz#c3d01747f112f2ec049906f63223c6bbb777af59"
9486+
integrity sha512-ewfaxuSATse2BxRgX2qdOui6DG9+gvlbCjr7L122LzjxlqAFZnqDY9HR0ID768vQbm0aBfyK/jDLgH1vQtpkew==
9487+
dependencies:
9488+
chalk "^2.3.1"
9489+
diff "^3.5.0"
9490+
minimist "^1.2.0"
9491+
94839492
ts-node@^5.0.0:
94849493
version "5.0.1"
94859494
resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-5.0.1.tgz#78e5d1cb3f704de1b641e43b76be2d4094f06f81"

0 commit comments

Comments
 (0)