-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9a11823
commit 1aead64
Showing
5 changed files
with
90 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
14
modules/rules_nodejs/6.3.2/patches/module_dot_bazel_version.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,8 @@ | |
"6.1.3", | ||
"6.2.0", | ||
"6.3.0", | ||
"6.3.1" | ||
"6.3.1", | ||
"6.3.2" | ||
], | ||
"yanked_versions": {} | ||
} |