Skip to content

Commit c3721b6

Browse files
committed
fix: ensure that all nested entry-points are flattened in the output
The previous fix, worked partially as it did not work for `@angular/core`
1 parent 01a875c commit c3721b6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/ng_package/angular_package_format.bzl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def _angular_package_format_impl(ctx):
208208
entry_point_package = dep.label.package
209209

210210
# Intentionally evaluates to empty string for the main entry point
211-
entry_point = entry_point_package[len(owning_package) + 1:].replace('/', '-')
211+
entry_point = entry_point_package[len(owning_package) + 1:]
212212

213213
# Whether this dependency is for the primary entry-point of the package.
214214
is_primary_entry_point = entry_point == ""
@@ -251,6 +251,7 @@ def _angular_package_format_impl(ctx):
251251
] if _ != ""])
252252

253253
bundle_name_base = primary_bundle_name if is_primary_entry_point else entry_point
254+
bundle_name_base = bundle_name_base.replace('/', '-')
254255

255256
# Store the collected entry point in a list of all entry-points. This
256257
# can be later passed to the packager as a manifest.

0 commit comments

Comments
 (0)