Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit f9b7c34

Browse files
gregmagolanalexeagle
authored andcommitted
Fix @build_bazel_rules_typescript//third_party/github.com/bazelbuild/bazel/src/main/protobuf:worker_protocol.proto target in npm @bazel/typescript generated bazel workspace
Closes #404 PiperOrigin-RevId: 232380639
1 parent 2c5e4a8 commit f9b7c34

File tree

6 files changed

+27
-0
lines changed

6 files changed

+27
-0
lines changed

internal/e2e/npm_packages/typescript_2.7/BUILD.bazel

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ ts_library(
3434

3535
jasmine_node_test(
3636
name = "test",
37+
data = [
38+
# Verify that worker_protocol.proto can be referenced as a target in the generated npm bazel workspace
39+
"@build_bazel_rules_typescript//third_party/github.com/bazelbuild/bazel/src/main/protobuf:worker_protocol.proto",
40+
],
3741
deps = [
3842
":test_lib",
3943
"@npm//jasmine",

internal/e2e/npm_packages/typescript_2.8/BUILD.bazel

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ ts_library(
3434

3535
jasmine_node_test(
3636
name = "test",
37+
data = [
38+
# Verify that worker_protocol.proto can be referenced as a target in the generated npm bazel workspace
39+
"@build_bazel_rules_typescript//third_party/github.com/bazelbuild/bazel/src/main/protobuf:worker_protocol.proto",
40+
],
3741
deps = [
3842
":test_lib",
3943
"@npm//jasmine",

internal/e2e/npm_packages/typescript_2.9/BUILD.bazel

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ ts_library(
3434

3535
jasmine_node_test(
3636
name = "test",
37+
data = [
38+
# Verify that worker_protocol.proto can be referenced as a target in the generated npm bazel workspace
39+
"@build_bazel_rules_typescript//third_party/github.com/bazelbuild/bazel/src/main/protobuf:worker_protocol.proto",
40+
],
3741
deps = [
3842
":test_lib",
3943
"@npm//jasmine",

internal/e2e/npm_packages/typescript_3.0/BUILD.bazel

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ ts_library(
3434

3535
jasmine_node_test(
3636
name = "test",
37+
data = [
38+
# Verify that worker_protocol.proto can be referenced as a target in the generated npm bazel workspace
39+
"@build_bazel_rules_typescript//third_party/github.com/bazelbuild/bazel/src/main/protobuf:worker_protocol.proto",
40+
],
3741
deps = [
3842
":test_lib",
3943
"@npm//jasmine",

internal/e2e/npm_packages/typescript_3.1/BUILD.bazel

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ ts_library(
3434

3535
jasmine_node_test(
3636
name = "test",
37+
data = [
38+
# Verify that worker_protocol.proto can be referenced as a target in the generated npm bazel workspace
39+
"@build_bazel_rules_typescript//third_party/github.com/bazelbuild/bazel/src/main/protobuf:worker_protocol.proto",
40+
],
3741
deps = [
3842
":test_lib",
3943
"@npm//jasmine",

third_party/github.com/bazelbuild/bazel/src/main/protobuf/BUILD.bazel

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
1+
# BEGIN-DEV-ONLY
2+
# Parts of this BUILD file only necessary when building within the bazelbuild/rules_typescript repo.
3+
# The generated `@bazel/typescript` npm package contains a trimmed BUILD file using # DEV-ONLY fences.
14
load("@io_bazel_rules_go//go:def.bzl", "go_library")
25
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
36

47
package(default_visibility = ["//:__pkg__"])
58

69
licenses(["notice"]) # Apache 2.0
10+
# END-DEV-ONLY
711

812
# Export the raw proto file so protobufjs can be used reflectively without codegen
913
exports_files(["worker_protocol.proto"])
1014

15+
# BEGIN-DEV-ONLY
1116
proto_library(
1217
name = "blaze_worker_proto",
1318
srcs = ["worker_protocol.proto"],
@@ -31,6 +36,8 @@ go_library(
3136
filegroup(
3237
name = "npm_package_assets",
3338
srcs = [
39+
"BUILD.bazel",
3440
"worker_protocol.proto",
3541
],
3642
)
43+
# END-DEV-ONLY

0 commit comments

Comments
 (0)