1
1
diff --git a/node_modules/@angular/bazel/src/ng_module/ng_module.bzl b/node_modules/@angular/bazel/src/ng_module/ng_module.bzl
2
- index 5e82bcb..3c239f8 100755
2
+ index 4c61ba9..f495e99 100755
3
3
--- a/node_modules/@angular/bazel/src/ng_module/ng_module.bzl
4
4
+++ b/node_modules/@angular/bazel/src/ng_module/ng_module.bzl
5
- @@ -18 ,6 +18 ,7 @@ load(
5
+ @@ -17 ,6 +17 ,7 @@ load(
6
6
"TsConfigInfo",
7
7
"compile_ts",
8
8
"js_ecma_script_module_info",
@@ -19,24 +19,24 @@ index 5e82bcb..3c239f8 100755
19
19
else:
20
20
- expected_outs = outs.closure_js + outs.declarations
21
21
+ expected_outs = outs.closure_js
22
-
22
+
23
23
if not ctx.attr.type_check and ctx.attr.strict_templates:
24
24
fail("Cannot set type_check = False and strict_templates = True for ng_module()")
25
- @@ -355 ,11 +356 ,11 @@ def _compile_action(
26
-
25
+ @@ -356 ,11 +357 ,11 @@ def _compile_action(
26
+
27
27
def _prodmode_compile_action(ctx, inputs, outputs, tsconfig_file, node_opts):
28
28
outs = _expected_outs(ctx)
29
29
- return _compile_action(ctx, inputs, outputs + outs.closure_js + outs.prod_perf_files + outs.declarations, tsconfig_file, node_opts, "prodmode")
30
30
+ return _compile_action(ctx, inputs, outputs + outs.closure_js + outs.prod_perf_files, tsconfig_file, node_opts, "prodmode")
31
-
31
+
32
32
def _devmode_compile_action(ctx, inputs, outputs, tsconfig_file, node_opts):
33
33
outs = _expected_outs(ctx)
34
34
- compile_action_outputs = outputs + outs.devmode_js + outs.dev_perf_files
35
35
+ compile_action_outputs = outputs + outs.devmode_js + outs.dev_perf_files + outs.declarations
36
36
_compile_action(ctx, inputs, compile_action_outputs, tsconfig_file, node_opts, "devmode")
37
-
37
+
38
38
# Note: We need to define `label` and `srcs_files` as `tsc_wrapped` passes
39
- @@ -413 ,9 +414 ,13 @@ def _ng_module_impl(ctx):
39
+ @@ -414 ,9 +415 ,13 @@ def _ng_module_impl(ctx):
40
40
# and issue https://github.com/bazelbuild/rules_nodejs/issues/57 for more details.
41
41
ts_providers["providers"].extend([
42
42
js_module_info(
@@ -51,17 +51,34 @@ index 5e82bcb..3c239f8 100755
51
51
js_ecma_script_module_info(
52
52
sources = ts_providers["typescript"]["es6_sources"],
53
53
deps = ctx.attr.deps,
54
- @@ -431 ,7 +436 ,7 @@ def _ng_module_impl(ctx):
54
+ @@ -432 ,7 +437 ,7 @@ def _ng_module_impl(ctx):
55
55
package_name = ctx.attr.package_name,
56
56
package_path = ctx.attr.package_path,
57
57
path = path,
58
58
- files = ts_providers["typescript"]["es6_sources"],
59
59
+ files = ts_providers["typescript"]["es5_sources"],
60
60
))
61
-
61
+
62
62
return ts_providers_dict_to_struct(ts_providers)
63
+ diff --git a/node_modules/@angular/bazel/src/ng_module/partial_compilation.bzl b/node_modules/@angular/bazel/src/ng_module/partial_compilation.bzl
64
+ index 5fd9a73..c155cea 100755
65
+ --- a/node_modules/@angular/bazel/src/ng_module/partial_compilation.bzl
66
+ +++ b/node_modules/@angular/bazel/src/ng_module/partial_compilation.bzl
67
+ @@ -16,10 +16,10 @@ ng_partial_compilation_flag = rule(
68
+ )
69
+
70
+ def _partial_compilation_transition_impl(_settings, _attr):
71
+ - return {"@npm//@angular/bazel/src:partial_compilation": True}
72
+ + return {"@rules_angular//src/ng_project/config:partial_compilation": True}
73
+
74
+ partial_compilation_transition = transition(
75
+ implementation = _partial_compilation_transition_impl,
76
+ inputs = [],
77
+ - outputs = ["@npm//@angular/bazel/src:partial_compilation"],
78
+ + outputs = ["@rules_angular//src/ng_project/config:partial_compilation"],
79
+ )
63
80
diff --git a/node_modules/@angular/bazel/src/ng_package/packager.mjs b/node_modules/@angular/bazel/src/ng_package/packager.mjs
64
- index dd6ec61..c2a0acf 100755
81
+ index 20604c5..6066214 100755
65
82
--- a/node_modules/@angular/bazel/src/ng_package/packager.mjs
66
83
+++ b/node_modules/@angular/bazel/src/ng_package/packager.mjs
67
84
@@ -8,7 +8,7 @@
@@ -74,7 +91,7 @@ index dd6ec61..c2a0acf 100755
74
91
* List of known `package.json` fields which provide information about
75
92
* supported package formats and their associated entry paths.
76
93
diff --git a/node_modules/@angular/bazel/src/ngc-wrapped/index.mjs b/node_modules/@angular/bazel/src/ngc-wrapped/index.mjs
77
- index 47aab66..3305d94 100755
94
+ index a315d24..021dea9 100755
78
95
--- a/node_modules/@angular/bazel/src/ngc-wrapped/index.mjs
79
96
+++ b/node_modules/@angular/bazel/src/ngc-wrapped/index.mjs
80
97
@@ -12,7 +12,7 @@ import tscw from '@bazel/concatjs/internal/tsc_wrapped/index.js';
@@ -86,7 +103,7 @@ index 47aab66..3305d94 100755
86
103
// FIXME: we should be able to add the assets to the tsconfig so FileLoader
87
104
// knows about them
88
105
const NGC_ASSETS = /\.(css|html)$/;
89
- @@ -350 ,6 +350 ,12 @@ function gatherDiagnosticsForInputsOnly(options, bazelOpts, ngProgram) {
106
+ @@ -351 ,6 +351 ,12 @@ function gatherDiagnosticsForInputsOnly(options, bazelOpts, ngProgram) {
90
107
}
91
108
return diagnostics;
92
109
}
@@ -100,7 +117,7 @@ index 47aab66..3305d94 100755
100
117
* @deprecated
101
118
* Kept here just for compatibility with 1P tools. To be removed soon after 1P update.
102
119
diff --git a/node_modules/@angular/bazel/src/ngc-wrapped/ngc-wrapped-main.mjs b/node_modules/@angular/bazel/src/ngc-wrapped/ngc-wrapped-main.mjs
103
- index 8efba56..d420348 100755
120
+ index 8efba56..be29334 100755
104
121
--- a/node_modules/@angular/bazel/src/ngc-wrapped/ngc-wrapped-main.mjs
105
122
+++ b/node_modules/@angular/bazel/src/ngc-wrapped/ngc-wrapped-main.mjs
106
123
@@ -5,7 +5,7 @@
0 commit comments