mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
build: fix examples package generating invalid metadata (#16073)
When building the `@angular/material-examples` package with Bazel, the generated flat module metadata file does not include metadata for the `ExampleModule`. This is because there is a genrule which declares an output with the same name of the example module source file. This means that the `ng_module` rule somehow accidentally picks up the genrule output and the generated flat module metadata file does not include the example module due https://github.com/angular/angular/issues/30259
This commit is contained in:
committed by
Jeremy Elbourn
parent
054dcc0279
commit
b66a9a28e0
@@ -76,7 +76,9 @@ genrule(
|
||||
# through Gulp), we need to exclude it because otherwise the genrule would fail.
|
||||
# TODO(devversion): remove this once gulp has been replaced with bazel.
|
||||
srcs = glob(["**/*.ts"], exclude = ["example-module.ts"]),
|
||||
outs = ["example-module.ts"],
|
||||
# TODO(devversion): we can't name the genrule output "example-module.ts" as it would
|
||||
# get accidentally picked up when building the example module. See: angular/angular#30259
|
||||
outs = ["example-module_generated.ts"],
|
||||
cmd = """
|
||||
# As a workaround for https://github.com/bazelbuild/rules_nodejs/issues/404, we pass the
|
||||
# data to the Bazel entry-point through environment variables.
|
||||
|
||||
Reference in New Issue
Block a user