Skip to content

Commit 3af71f9

Browse files
committed
build: update aspect_rules_js to 3.0.2
This updates the major version of `aspect_rules_js`.
1 parent dd40d47 commit 3af71f9

File tree

36 files changed

+140
-249
lines changed

36 files changed

+140
-249
lines changed

MODULE.bazel

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ module(
77
bazel_dep(name = "platforms", version = "1.0.0")
88
bazel_dep(name = "yq.bzl", version = "0.3.5")
99
bazel_dep(name = "rules_nodejs", version = "6.7.3")
10-
bazel_dep(name = "aspect_rules_js", version = "2.9.2")
10+
bazel_dep(name = "aspect_rules_js", version = "3.0.2")
1111
bazel_dep(name = "aspect_rules_ts", version = "3.8.5")
1212
bazel_dep(name = "rules_pkg", version = "1.2.0")
1313
bazel_dep(name = "rules_cc", version = "0.2.17")
14-
bazel_dep(name = "aspect_bazel_lib", version = "2.22.5")
14+
bazel_dep(name = "jq.bzl", version = "0.4.0")
15+
bazel_dep(name = "bazel_lib", version = "3.2.2")
1516
bazel_dep(name = "bazel_skylib", version = "1.9.0")
1617
bazel_dep(name = "aspect_rules_esbuild", version = "0.25.0")
1718
bazel_dep(name = "aspect_rules_jasmine", version = "2.0.4")
@@ -25,7 +26,7 @@ git_override(
2526
bazel_dep(name = "devinfra")
2627
git_override(
2728
module_name = "devinfra",
28-
commit = "63fd18d4726829e65f6abe6f15c0fe79f63f1dec",
29+
commit = "491fa7fc1803683748875b2b89d85700aca2b1f4",
2930
remote = "https://github.com/angular/dev-infra.git",
3031
)
3132

@@ -155,6 +156,14 @@ npm.npm_translate_lock(
155156
npmrc = "//:.npmrc",
156157
pnpm_lock = "//:pnpm-lock.yaml",
157158
)
159+
160+
# This is needed as by default `.md` files are excluded from the npm package.
161+
# But @angular/core includes best-practices.md file.
162+
# See: https://github.com/aspect-build/rules_js/blob/786a74a158dd36ed073188b0e506c423cd05501a/npm/private/exclude_package_contents_presets.bzl#L29
163+
npm.npm_exclude_package_contents(
164+
package = "@angular/core",
165+
presets = [],
166+
)
158167
use_repo(npm, "npm")
159168

160169
rules_ts_ext = use_extension("@aspect_rules_ts//ts:extensions.bzl", "ext")
@@ -180,5 +189,4 @@ register_toolchains(
180189
"@devinfra//bazel/git-toolchain:git_macos_arm64_toolchain",
181190
"@devinfra//bazel/git-toolchain:git_windows_toolchain",
182191
"//tools/toolchains:dummy_cc_windows_no_exec_toolchain",
183-
"//tools/toolchains:node24_windows_no_exec_toolchain",
184192
)

MODULE.bazel.lock

Lines changed: 46 additions & 182 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

goldens/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("@aspect_bazel_lib//lib:copy_to_bin.bzl", "copy_to_bin")
1+
load("@bazel_lib//lib:copy_to_bin.bzl", "copy_to_bin")
22

33
package(default_visibility = ["//visibility:public"])
44

modules/testing/builder/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ ts_project(
2222
":node_modules/@angular/ssr",
2323
":node_modules/browser-sync",
2424
":node_modules/jsdom",
25+
":node_modules/ng-packagr",
2526
":node_modules/vitest",
2627
":node_modules/@vitest/coverage-v8",
2728
] + glob(["projects/**/*"]),

modules/testing/builder/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
22
"devDependencies": {
3-
"@angular-devkit/core": "workspace:*",
43
"@angular-devkit/architect": "workspace:*",
5-
"@angular/ssr": "workspace:*",
64
"@angular-devkit/build-angular": "workspace:*",
7-
"browser-sync": "3.0.4",
5+
"@angular-devkit/core": "workspace:*",
6+
"@angular/ssr": "workspace:*",
87
"@vitest/coverage-v8": "4.0.18",
8+
"browser-sync": "3.0.4",
99
"jsdom": "28.1.0",
10+
"ng-packagr": "22.0.0-next.0",
1011
"rxjs": "7.8.2",
1112
"vitest": "4.0.18"
1213
}

packages/angular_devkit/build_angular/test/hello-world-lib/.gitignore renamed to modules/testing/builder/projects/hello-world-lib/.gitignore

File renamed without changes.

packages/angular_devkit/build_angular/test/hello-world-lib/angular.json renamed to modules/testing/builder/projects/hello-world-lib/angular.json

File renamed without changes.

packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/karma.conf.js renamed to modules/testing/builder/projects/hello-world-lib/projects/lib/karma.conf.js

File renamed without changes.

packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/ng-package.json renamed to modules/testing/builder/projects/hello-world-lib/projects/lib/ng-package.json

File renamed without changes.

packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/package.json renamed to modules/testing/builder/projects/hello-world-lib/projects/lib/package.json

File renamed without changes.

0 commit comments

Comments
 (0)