Skip to content

Commit

Permalink
Merge pull request #3206 from cloudflare/yagiz-update-nodejs-v22-11
Browse files Browse the repository at this point in the history
update nodejs to v22.11.0
  • Loading branch information
anonrig authored Dec 3, 2024
2 parents fb03c6a + c5bdc7f commit 401c665
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ deps_gen()
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")

NODE_VERSION = "20.14.0"
NODE_VERSION = "22.11.0"

load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")

Expand Down
9 changes: 9 additions & 0 deletions build/deps/build_deps.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,15 @@
"repo": "rules_pkg",
"file_regex": "\\.tar\\.gz$"
},
{
// Needed for running the latest Node.js due to aspect_rules_js using older
// version by default
"name": "rules_nodejs",
"type": "github_release",
"owner": "bazel-contrib",
"repo": "rules_nodejs",
"file_regex": "\\.tar\\.gz$"
},
{
// Needed for aspect_rules_js, build fails on Windows if it is not fetched explicitly.
// rules_js 2.1.0 uses a fixed version, once we update to that version this can be dropped.
Expand Down
2 changes: 2 additions & 0 deletions build/deps/gen/build_deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ load("@//build/deps:gen/dep_cargo_bazel_macos_arm64.bzl", "dep_cargo_bazel_macos
load("@//build/deps:gen/dep_cargo_bazel_macos_x64.bzl", "dep_cargo_bazel_macos_x64")
load("@//build/deps:gen/dep_cargo_bazel_win_x64.bzl", "dep_cargo_bazel_win_x64")
load("@//build/deps:gen/dep_cxxbridge_cmd.bzl", "dep_cxxbridge_cmd")
load("@//build/deps:gen/dep_rules_nodejs.bzl", "dep_rules_nodejs")
load("@//build/deps:gen/dep_rules_pkg.bzl", "dep_rules_pkg")
load("@//build/deps:gen/dep_rules_python.bzl", "dep_rules_python")
load("@//build/deps:gen/dep_rules_rust.bzl", "dep_rules_rust")
Expand All @@ -34,6 +35,7 @@ def deps_gen():
dep_cxxbridge_cmd()
dep_aspect_rules_esbuild()
dep_rules_pkg()
dep_rules_nodejs()
dep_aspect_bazel_lib()
dep_aspect_rules_js()
dep_aspect_rules_ts()
Expand Down
18 changes: 18 additions & 0 deletions build/deps/gen/dep_rules_nodejs.bzl
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# WARNING: THIS FILE IS AUTOGENERATED BY update-deps.py DO NOT EDIT

load("@//:build/http.bzl", "http_archive")

TAG_NAME = "v6.3.2"
URL = "https://api.github.com/repos/bazel-contrib/rules_nodejs/tarball/v6.3.2"
STRIP_PREFIX = "bazel-contrib-rules_nodejs-ea47e8d"
SHA256 = "990827af9f845b5e7089ce80ca0737f73b7569f0e6011d0d59b4448967a439be"
TYPE = "tgz"

def dep_rules_nodejs():
http_archive(
name = "rules_nodejs",
url = URL,
strip_prefix = STRIP_PREFIX,
type = TYPE,
sha256 = SHA256,
)

0 comments on commit 401c665

Please sign in to comment.