bazel-contrib / rules_nodejs

NodeJS toolchain for Bazel.
https://bazelbuild.github.io/rules_nodejs/
Apache License 2.0
733 stars 522 forks source link

[FR]: Allow arbitrary NodeJS versions via bzlmod interface #3781

Open Silic0nS0ldier opened 2 months ago

Silic0nS0ldier commented 2 months ago

What is the current behavior?

Only versions listed in the internal nodejs/private/node_versions.bzl list are accepted.

Describe the feature

Add node_repositories as an attribute to node.toolchain to allow using versions of NodeJS that did not exist when the ruleset was last released.

This is already possible when using the older nodejs_repositories rule/macro directly.