11load ("@aspect_rules_js//js:defs.bzl" , "js_binary" , "js_test" )
22
3- default_strip_export_pattern = "^ɵ(?!ɵdefineInjectable|ɵinject|ɵInjectableDef)"
3+ # Note: On Windows pipe character can break the command line as it tries
4+ # to invoke the following word as a command.
5+ default_strip_export_pattern = "^ɵ(?!ɵdefineInjectable\\ u7Cɵinject\\ u7CɵInjectableDef)"
46
57def _escape_regex_for_arg (value ):
68 """Escapes a Regular expression so that it can be passed as process argument."""
@@ -41,7 +43,7 @@ def api_golden_test_npm_package(
4143 name = name ,
4244 data = data ,
4345 entry_point = "@devinfra//bazel/api-golden:index_npm_packages.js" ,
44- args = [golden_dir , npm_package , "false" , quoted_export_pattern ] + type_names ,
46+ fixed_args = [golden_dir , npm_package , "false" , quoted_export_pattern ] + type_names ,
4547 ** kwargs
4648 )
4749
@@ -50,6 +52,6 @@ def api_golden_test_npm_package(
5052 testonly = True ,
5153 data = data ,
5254 entry_point = "@devinfra//bazel/api-golden:index_npm_packages.js" ,
53- args = [golden_dir , npm_package , "true" , quoted_export_pattern ] + type_names ,
55+ fixed_args = [golden_dir , npm_package , "true" , quoted_export_pattern ] + type_names ,
5456 ** kwargs
5557 )
0 commit comments