Skip to content

Commit 2cca47d

Browse files
committed
fixup! build: update to nodejs v16 and update rules_nodejs to v4 stable
Add missing SHA and move esbuild utils
1 parent e814b09 commit 2cca47d

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

WORKSPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
88
# Add NodeJS rules
99
http_archive(
1010
name = "build_bazel_rules_nodejs",
11-
sha256 = "",
11+
sha256 = "8a7c981217239085f78acc9898a1f7ba99af887c1996ceb3b4504655383a2c3c",
1212
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/4.0.0/rules_nodejs-4.0.0.tar.gz"],
1313
)
1414

src/material-date-fns-adapter/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
load("//tools:defaults.bzl", "ng_module", "ng_package", "ng_test_library", "ng_web_test_suite")
2-
load(":esbuild-amd.bzl", "esbuild_amd")
2+
load("//tools/esbuild:index.bzl", "esbuild_amd")
33

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

tools/esbuild/BUILD.bazel

Whitespace-only changes.

src/material-date-fns-adapter/esbuild-amd.bzl renamed to tools/esbuild/index.bzl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
load("@npm//@bazel/esbuild:index.bzl", "esbuild", "esbuild_config")
1+
load("@npm//@bazel/esbuild:index.bzl", _esbuild = "esbuild", "esbuild_config")
22
load("@npm//@angular/dev-infra-private/bazel:expand_template.bzl", "expand_template")
33

4+
def esbuild(**kwargs):
5+
_esbuild(**kwargs)
6+
47
"""Generates an AMD bundle for the specified entry-point with the given AMD module name."""
58

69
def esbuild_amd(name, entry_point, module_name, testonly, deps):
710
expand_template(
811
name = "%s_config" % name,
912
testonly = testonly,
10-
template = "//src/material-date-fns-adapter:esbuild-amd-config.mjs",
13+
template = "//tools/esbuild:esbuild-amd-config.mjs",
1114
output_name = "%s_config.mjs" % name,
1215
substitutions = {
1316
"TMPL_MODULE_NAME": module_name,
@@ -20,7 +23,7 @@ def esbuild_amd(name, entry_point, module_name, testonly, deps):
2023
config_file = "%s_config" % name,
2124
)
2225

23-
esbuild(
26+
_esbuild(
2427
name = "%s_bundle" % name,
2528
testonly = testonly,
2629
deps = deps,

0 commit comments

Comments
 (0)