Skip to content

Commit e35e92b

Browse files
authored
build: update @angular/bazel to latest (angular#29937)
1 parent 1f66a82 commit e35e92b

File tree

5 files changed

+14
-15
lines changed

5 files changed

+14
-15
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"@angular-devkit/build-angular": "^19.0.0-next.10",
7474
"@angular-devkit/core": "^19.0.0-next.10",
7575
"@angular-devkit/schematics": "^19.0.0-next.10",
76-
"@angular/bazel": "https://github.com/angular/bazel-builds.git#9e6140d1eef8ddf7113d00738f603e9cc3c310f1",
76+
"@angular/bazel": "https://github.com/angular/bazel-builds.git#d9a8ea4f9e62cb475eff89519426a38631b2704d",
7777
"@angular/build-tooling": "https://github.com/angular/dev-infra-private-build-tooling-builds.git#74e0e7b090c6e16056290836b2d936ca7820b86f",
7878
"@angular/build": "^19.0.0-next.10",
7979
"@angular/cli": "^19.0.0-next.10",

src/bazel-tsconfig-build.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
"importHelpers": true,
2222
"strictBindCallApply": true,
2323
"esModuleInterop": true,
24-
// Keep the below in sync with https://github.com/angular/angular/blob/f9b821f07d8dba57a6a7e5fc127dc096247424aa/packages/bazel/src/ng_module/ng_module.bzl#L214
25-
"useDefineForClassFields": false,
2624
"newLine": "lf",
2725
// Bazel either uses "umd" or "esnext". We replicate this here for IDE support.
2826
// https://github.com/bazelbuild/rules_typescript/blob/master/internal/common/tsconfig.bzl#L199

src/cdk-experimental/popover-edit/popover-edit.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ describe('CDK Popover Edit', () => {
403403
});
404404
fixture = TestBed.createComponent<BaseTestComponent>(componentClass);
405405
component = fixture.componentInstance;
406+
component.renderData();
406407
fixture.detectChanges();
407408
tick(10);
408409
fixture.detectChanges();

tools/postinstall/patches/@angular+bazel+16.0.0-next.6.patch

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
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 99d7f6d..3ea60ea 100755
2+
index 5e82bcb..3c239f8 100755
33
--- a/node_modules/@angular/bazel/src/ng_module/ng_module.bzl
44
+++ b/node_modules/@angular/bazel/src/ng_module/ng_module.bzl
55
@@ -18,6 +18,7 @@ load(
@@ -22,7 +22,7 @@ index 99d7f6d..3ea60ea 100755
2222

2323
if not ctx.attr.type_check and ctx.attr.strict_templates:
2424
fail("Cannot set type_check = False and strict_templates = True for ng_module()")
25-
@@ -359,11 +360,11 @@ def _compile_action(
25+
@@ -355,11 +356,11 @@ def _compile_action(
2626

2727
def _prodmode_compile_action(ctx, inputs, outputs, tsconfig_file, node_opts):
2828
outs = _expected_outs(ctx)
@@ -36,7 +36,7 @@ index 99d7f6d..3ea60ea 100755
3636
_compile_action(ctx, inputs, compile_action_outputs, tsconfig_file, node_opts, "devmode")
3737

3838
# Note: We need to define `label` and `srcs_files` as `tsc_wrapped` passes
39-
@@ -417,9 +418,13 @@ def _ng_module_impl(ctx):
39+
@@ -413,9 +414,13 @@ def _ng_module_impl(ctx):
4040
# and issue https://github.com/bazelbuild/rules_nodejs/issues/57 for more details.
4141
ts_providers["providers"].extend([
4242
js_module_info(
@@ -51,7 +51,7 @@ index 99d7f6d..3ea60ea 100755
5151
js_ecma_script_module_info(
5252
sources = ts_providers["typescript"]["es6_sources"],
5353
deps = ctx.attr.deps,
54-
@@ -435,7 +440,7 @@ def _ng_module_impl(ctx):
54+
@@ -431,7 +436,7 @@ def _ng_module_impl(ctx):
5555
package_name = ctx.attr.package_name,
5656
package_path = ctx.attr.package_path,
5757
path = path,
@@ -61,7 +61,7 @@ index 99d7f6d..3ea60ea 100755
6161

6262
return ts_providers_dict_to_struct(ts_providers)
6363
diff --git a/node_modules/@angular/bazel/src/ng_package/packager.mjs b/node_modules/@angular/bazel/src/ng_package/packager.mjs
64-
index 12d5f0c..8868e27 100755
64+
index 7184fd9..ef3e508 100755
6565
--- a/node_modules/@angular/bazel/src/ng_package/packager.mjs
6666
+++ b/node_modules/@angular/bazel/src/ng_package/packager.mjs
6767
@@ -7,7 +7,7 @@
@@ -74,7 +74,7 @@ index 12d5f0c..8868e27 100755
7474
* List of known `package.json` fields which provide information about
7575
* supported package formats and their associated entry paths.
7676
diff --git a/node_modules/@angular/bazel/src/ngc-wrapped/index.mjs b/node_modules/@angular/bazel/src/ngc-wrapped/index.mjs
77-
index 09deff8..00d24be 100755
77+
index def2972..3de33ba 100755
7878
--- a/node_modules/@angular/bazel/src/ngc-wrapped/index.mjs
7979
+++ b/node_modules/@angular/bazel/src/ngc-wrapped/index.mjs
8080
@@ -12,7 +12,7 @@ import tscw from '@bazel/concatjs/internal/tsc_wrapped/index.js';
@@ -86,7 +86,7 @@ index 09deff8..00d24be 100755
8686
// FIXME: we should be able to add the assets to the tsconfig so FileLoader
8787
// knows about them
8888
const NGC_ASSETS = /\.(css|html)$/;
89-
@@ -348,6 +348,12 @@ function gatherDiagnosticsForInputsOnly(options, bazelOpts, ngProgram) {
89+
@@ -349,6 +349,12 @@ function gatherDiagnosticsForInputsOnly(options, bazelOpts, ngProgram) {
9090
}
9191
return diagnostics;
9292
}
@@ -100,12 +100,12 @@ index 09deff8..00d24be 100755
100100
* @deprecated
101101
* Kept here just for compatibility with 1P tools. To be removed soon after 1P update.
102102
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 ccf82d2..daaa783 100755
103+
index 8efba56..d420348 100755
104104
--- a/node_modules/@angular/bazel/src/ngc-wrapped/ngc-wrapped-main.mjs
105105
+++ b/node_modules/@angular/bazel/src/ngc-wrapped/ngc-wrapped-main.mjs
106106
@@ -5,7 +5,7 @@
107107
* Use of this source code is governed by an MIT-style license that can be
108-
* found in the LICENSE file at https://angular.io/license
108+
* found in the LICENSE file at https://angular.dev/license
109109
*/
110110
-import { main } from './index';
111111
+import { main } from './index.mjs';

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@
139139
dependencies:
140140
tslib "^2.3.0"
141141

142-
"@angular/bazel@https://github.com/angular/bazel-builds.git#9e6140d1eef8ddf7113d00738f603e9cc3c310f1":
143-
version "19.0.0-next.1"
144-
resolved "https://github.com/angular/bazel-builds.git#9e6140d1eef8ddf7113d00738f603e9cc3c310f1"
142+
"@angular/bazel@https://github.com/angular/bazel-builds.git#d9a8ea4f9e62cb475eff89519426a38631b2704d":
143+
version "19.1.0-next.0"
144+
resolved "https://github.com/angular/bazel-builds.git#d9a8ea4f9e62cb475eff89519426a38631b2704d"
145145
dependencies:
146146
"@microsoft/api-extractor" "^7.24.2"
147147
magic-string "^0.30.0"

0 commit comments

Comments
 (0)