Skip to content

Commit 1ac037c

Browse files
committed
fix(bazel/spec-bundling): allow for non init suffixed files to be used as bootstrap files (#2908)
Allow for files that are not suffixed with init to be used as bootstrap files PR Close #2908
1 parent f71394b commit 1ac037c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bazel/spec-bundling/spec-entrypoint.bzl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ def _spec_entrypoint_impl(ctx):
7171
# Note: `to_list()` is an expensive operation but we need to do this for every
7272
# dependency here in order to be able to filter out spec files from depsets.
7373
direct_bootstrap_files = depset(transitive = bootstrap_direct_deps).to_list()
74-
bootstrap_files = _filter_files(direct_bootstrap_files, ["init"])
74+
75+
# Filter to only js and mjs files, we can't always define what the name of the files
76+
# needed for bootstrapping are so we rely on the user to provide the exact list.
77+
bootstrap_files = _filter_files(direct_bootstrap_files, [""])
7578

7679
ctx.actions.write(
7780
output = output,

0 commit comments

Comments
 (0)