-
Notifications
You must be signed in to change notification settings - Fork 67
Expand file tree
/
Copy pathBUILD.bazel
More file actions
64 lines (59 loc) · 1.89 KB
/
BUILD.bazel
File metadata and controls
64 lines (59 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
load("//tools:defaults.bzl", "esbuild_checked_in", "jasmine_test", "ts_project")
package(default_visibility = ["//github-actions/labeling/issue:__subpackages__"])
ts_project(
name = "lib",
srcs = glob(
["lib/*.ts"],
exclude = ["lib/*.spec.ts"],
),
tsconfig = "//github-actions:tsconfig",
deps = [
"//github-actions:utils",
"//github-actions/labeling:node_modules/@actions/core",
"//github-actions/labeling:node_modules/@actions/github",
"//github-actions/labeling:node_modules/@google/genai",
"//github-actions/labeling:node_modules/@octokit/openapi-types",
"//github-actions/labeling:node_modules/@octokit/rest",
"//github-actions/labeling:node_modules/@types/node",
"//github-actions/labeling/shared",
"//ng-dev/pr/common/labels",
],
)
ts_project(
name = "test_lib",
testonly = True,
srcs = glob(["lib/*.spec.ts"]),
tsconfig = "//github-actions:tsconfig_test",
deps = [
":lib",
"//github-actions:utils",
"//github-actions/labeling:node_modules/@actions/core",
"//github-actions/labeling:node_modules/@actions/github",
"//github-actions/labeling:node_modules/@google/genai",
"//github-actions/labeling:node_modules/@octokit/openapi-types",
"//github-actions/labeling:node_modules/@octokit/rest",
"//github-actions/labeling:node_modules/@types/jasmine",
"//github-actions/labeling:node_modules/@types/node",
],
)
jasmine_test(
name = "test",
data = [
"issue-context.json",
":test_lib",
],
env = {
"GITHUB_REPOSITORY": "angular/angular",
"GITHUB_EVENT_PATH": "$(location :issue-context.json)",
},
)
esbuild_checked_in(
name = "main",
srcs = [
":lib",
],
entry_point = "lib/main.ts",
format = "esm",
platform = "node",
target = "node22",
)