Skip to content

Commit

Permalink
rules_nodejs@6.3.1 (bazelbuild#2943)
Browse files Browse the repository at this point in the history
Release:
https://github.com/bazel-contrib/rules_nodejs/releases/tag/v6.3.1

_Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_

Co-authored-by: Alex Eagle <alex@aspect.dev>
  • Loading branch information
publish-to-bcr-bot[bot] and alexeagle authored Oct 12, 2024
1 parent 7bab266 commit 67f6ff0
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 1 deletion.
51 changes: 51 additions & 0 deletions modules/rules_nodejs/6.3.1/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
"bzlmod declaration for bazel-contrib/rules_nodejs"

module(
name = "rules_nodejs",
version = "6.3.1",
compatibility_level = 1,
)

# Lower-bounds (minimum) versions for direct runtime dependencies
bazel_dep(name = "bazel_skylib", version = "1.4.1")
bazel_dep(name = "platforms", version = "0.0.5")

node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node")

# Note, this gets the default version of Node.js from
# https://github.com/bazel-contrib/rules_nodejs/blob/main/nodejs/repositories.bzl#L11
node.toolchain()
use_repo(node, "nodejs_toolchains")

# Toolchain registration under bzlmod should match the order of WORKSPACE registration
# which is the order specified in the PLATFORMS dict https://github.com/bazel-contrib/rules_nodejs/blob/4c373209b058d46f2a5f9ab9f8abf11b161ae459/nodejs/private/nodejs_toolchains_repo.bzl#L20.
# For each platform, `:<PLATFORM>_toolchain_target` should be registered before `:<PLATFORM>_toolchain`,
# https://github.com/bazel-contrib/rules_nodejs/blob/4c373209b058d46f2a5f9ab9f8abf11b161ae459/nodejs/repositories.bzl#L461/.
# See https://github.com/bazelbuild/bazel/issues/19645 and https://github.com/bazel-contrib/rules_nodejs/pull/3750 for more context.
register_toolchains("@nodejs_toolchains//:linux_amd64_toolchain_target")

register_toolchains("@nodejs_toolchains//:linux_amd64_toolchain")

register_toolchains("@nodejs_toolchains//:linux_arm64_toolchain_target")

register_toolchains("@nodejs_toolchains//:linux_arm64_toolchain")

register_toolchains("@nodejs_toolchains//:linux_s390x_toolchain_target")

register_toolchains("@nodejs_toolchains//:linux_s390x_toolchain")

register_toolchains("@nodejs_toolchains//:linux_ppc64le_toolchain_target")

register_toolchains("@nodejs_toolchains//:linux_ppc64le_toolchain")

register_toolchains("@nodejs_toolchains//:darwin_amd64_toolchain_target")

register_toolchains("@nodejs_toolchains//:darwin_amd64_toolchain")

register_toolchains("@nodejs_toolchains//:darwin_arm64_toolchain_target")

register_toolchains("@nodejs_toolchains//:darwin_arm64_toolchain")

register_toolchains("@nodejs_toolchains//:windows_amd64_toolchain_target")

register_toolchains("@nodejs_toolchains//:windows_amd64_toolchain")
14 changes: 14 additions & 0 deletions modules/rules_nodejs/6.3.1/patches/module_dot_bazel_version.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
===================================================================
--- a/MODULE.bazel
+++ b/MODULE.bazel
@@ -1,9 +1,9 @@
"bzlmod declaration for bazel-contrib/rules_nodejs"

module(
name = "rules_nodejs",
- version = "0.0.0",
+ version = "6.3.1",
compatibility_level = 1,
)

# Lower-bounds (minimum) versions for direct runtime dependencies
14 changes: 14 additions & 0 deletions modules/rules_nodejs/6.3.1/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
bcr_test_module:
module_path: "e2e/smoke"
matrix:
bazel: ["7.x"]
platform: ["debian10", "macos", "ubuntu2004", "windows"]
tasks:
run_tests:
name: "Run test module"
bazel: ${{ bazel }}
platform: ${{ platform }}
test_targets:
- "//..."
test_flags:
- "--test_tag_filters=-skip-on-bazelci-windows"
9 changes: 9 additions & 0 deletions modules/rules_nodejs/6.3.1/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"integrity": "sha256-BRTGUw/rer+UyeOutOM8iaIeLpydntRMwhc5O78Fypw=",
"strip_prefix": "rules_nodejs-6.3.1",
"url": "https://github.com/bazel-contrib/rules_nodejs/releases/download/v6.3.1/rules_nodejs-v6.3.1.tar.gz",
"patches": {
"module_dot_bazel_version.patch": "sha256-nt2iakDEDigWGq9+3fWfkQASS9tNQ4BVgY9G2GLACOc="
},
"patch_strip": 1
}
3 changes: 2 additions & 1 deletion modules/rules_nodejs/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"6.1.2",
"6.1.3",
"6.2.0",
"6.3.0"
"6.3.0",
"6.3.1"
],
"yanked_versions": {}
}

0 comments on commit 67f6ff0

Please sign in to comment.