-
Notifications
You must be signed in to change notification settings - Fork 523
Migrating to 5.0
Alex Eagle edited this page Dec 23, 2021
·
21 revisions
Prior to 5.0, the build_bazel_rules_nodejs workspace had zero starlark dependencies, because transitive handling of them in WORKSPACE was so difficult for users to get right.
However now that Bazel has bzlmod to manage these transitive dependencies, we feel it's the right time to add dependencies.
You need to update your WORKSPACE file to include:
load("@build_bazel_rules_nodejs//nodejs:repositories.bzl", "nodejs_register_toolchains", "rules_nodejs_dependencies")
rules_nodejs_dependencies()
nodejs_register_toolchains(
name = "nodejs",
node_version = "12.14.1",
)