Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
publish-to-bcr-bot[bot] authored Nov 7, 2024
1 parent 9a11823 commit 1aead64
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.2/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.2",
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.2/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.2",
compatibility_level = 1,
)

# Lower-bounds (minimum) versions for direct runtime dependencies
14 changes: 14 additions & 0 deletions modules/rules_nodejs/6.3.2/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.2/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"integrity": "sha256-FYYZcj8di9U13WuTUh9OA88kpeEHEm0FaF+9lUDMrRA=",
"strip_prefix": "rules_nodejs-6.3.2",
"url": "https://github.com/bazel-contrib/rules_nodejs/releases/download/v6.3.2/rules_nodejs-v6.3.2.tar.gz",
"patches": {
"module_dot_bazel_version.patch": "sha256-3R1xRgJElixW+OEIHu2crHObQ9lzaFYy78fhV+JfgdM="
},
"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 @@ -32,7 +32,8 @@
"6.1.3",
"6.2.0",
"6.3.0",
"6.3.1"
"6.3.1",
"6.3.2"
],
"yanked_versions": {}
}

0 comments on commit 1aead64

Please sign in to comment.