Skip to content

Commit ef0bf46

Browse files
committed
Add nodejs rules for the examples workspace.
1 parent 9b0fb32 commit ef0bf46

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

examples/WORKSPACE

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,23 @@ http_archive(
3737
],
3838
)
3939

40+
http_archive(
41+
name = "build_bazel_rules_nodejs",
42+
url = "https://github.com/bazelbuild/rules_nodejs/archive/0.16.2.zip",
43+
strip_prefix = "rules_nodejs-0.16.2",
44+
sha256 = "9b72bb0aea72d7cbcfc82a01b1e25bf3d85f791e790ddec16c65e2d906382ee0"
45+
)
46+
47+
load("@build_bazel_rules_nodejs//:defs.bzl", "node_repositories", "npm_install")
48+
node_repositories()
49+
50+
# Dependencies for the @examples//hello_world_wasm example.
51+
npm_install(
52+
name = "npm",
53+
package_json = "@io_bazel_rules_rust//:package.json",
54+
package_lock_json = "@io_bazel_rules_rust//:package-lock.json",
55+
)
56+
4057
load("@io_bazel_rules_rust//bindgen:repositories.bzl", "rust_bindgen_repositories")
4158

4259
rust_bindgen_repositories()

0 commit comments

Comments
 (0)