Skip to content

Commit 77e2d4a

Browse files
authored
feat(typescript): add a transitive_js_ecma_script_module_info alias to js_ecma_script_module_info (#1243)
This will make updating angular/angular much easier. Alias to be removed before 1.0 release.
1 parent 79b0927 commit 77e2d4a

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

examples/angular/patches/@angular+bazel+9.0.0-next.8.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ index 9b88fbb..68217d0 100755
3232
"ts_providers_dict_to_struct",
3333
"tsc_wrapped_tsconfig",
3434
)
35-
+load("@build_bazel_rules_nodejs//:providers.bzl", "js_ecma_script_module_info")
35+
+load("@build_bazel_rules_nodejs//:providers.bzl", "transitive_js_ecma_script_module_info")
3636

3737
_FLAT_DTS_FILE_SUFFIX = ".bundle.d.ts"
3838
_R3_SYMBOLS_DTS_FILE = "src/r3_symbols.d.ts"
@@ -63,7 +63,7 @@ index 9b88fbb..68217d0 100755
6363
+
6464
+ # Add in new JS providers
6565
+ ts_providers["providers"].extend([
66-
+ js_ecma_script_module_info(
66+
+ transitive_js_ecma_script_module_info(
6767
+ sources = ts_providers["typescript"]["es6_sources"],
6868
+ deps = ctx.attr.deps,
6969
+ ),

providers.bzl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,10 @@ Returns a single JSEcmaScriptModuleInfo.
5050
direct_sources = sources,
5151
sources = depset(transitive = transitive_depsets),
5252
)
53+
54+
def transitive_js_ecma_script_module_info(**kwargs):
55+
"""Alias of js_ecma_script_module_info.
56+
57+
TODO(gregmagolan): Remove this alias before 1.0 release.
58+
"""
59+
return js_ecma_script_module_info(**kwargs)

0 commit comments

Comments
 (0)