Skip to content

Commit 1cc80c1

Browse files
authored
Merge pull request #12 from rmmh/fix-data
Include data= deps for mocha_test and node_binary in runfiles.
2 parents 218654c + 8f7a9f1 commit 1cc80c1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

node/internal/mocha_test.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ def mocha_test_impl(ctx):
9696
return struct(
9797
runfiles = ctx.runfiles(
9898
files = runfiles,
99+
collect_data = True,
99100
),
100101
)
101102

@@ -110,6 +111,7 @@ mocha_test = rule(
110111
),
111112
"data": attr.label_list(
112113
allow_files = True,
114+
cfg = "data",
113115
),
114116
"deps": attr.label_list(
115117
providers = ["node_library"],

node/internal/node_binary.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ def node_binary_impl(ctx):
7676
return struct(
7777
runfiles = ctx.runfiles(
7878
files = runfiles,
79+
collect_data = True,
7980
),
8081
)
8182

@@ -89,6 +90,7 @@ node_binary = rule(
8990
),
9091
"data": attr.label_list(
9192
allow_files = True,
93+
cfg = "data",
9294
),
9395
"deps": attr.label_list(
9496
providers = ["node_library"],

0 commit comments

Comments
 (0)