Skip to content

Commit ddf5d43

Browse files
alexeagleshs96c
authored andcommitted
Update to latest bazel/rules_nodejs (#7347)
1 parent 41730f6 commit ddf5d43

File tree

6 files changed

+893
-432
lines changed

6 files changed

+893
-432
lines changed

.bazelrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,9 @@ test --test_output=errors
1313

1414
# Need to be able to open sockets on localhost
1515
test --noexperimental_sandbox_default_allow_network
16+
17+
# Turn on the "Managed Directories" feature.
18+
# This allows Bazel to share the same node_modules directory with other tools
19+
# NB: this option was introduced in Bazel 0.26
20+
# See https://docs.bazel.build/versions/master/command-line-reference.html#flag--experimental_allow_incremental_repository_updates
21+
common --experimental_allow_incremental_repository_updates

WORKSPACE

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
workspace(name = "selenium")
1+
workspace(
2+
name = "selenium",
3+
managed_directories = {
4+
# Share the node_modules directory between Bazel and other tooling
5+
"@npm": ["node_modules"],
6+
}
7+
)
28

39
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
410

@@ -98,8 +104,8 @@ dotnet_nuget_new(
98104

99105
http_archive(
100106
name = "build_bazel_rules_nodejs",
101-
sha256 = "4c702ffeeab2d24dd4101601b6d27cf582d2e0d4cdc3abefddd4834664669b6b",
102-
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/0.28.0/rules_nodejs-0.28.0.tar.gz"],
107+
sha256 = "6d4edbf28ff6720aedf5f97f9b9a7679401bf7fca9d14a0fff80f644a99992b4",
108+
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/0.32.2/rules_nodejs-0.32.2.tar.gz"],
103109
)
104110

105111
load("@build_bazel_rules_nodejs//:defs.bzl", "npm_install")

javascript/node/selenium-webdriver/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ nodejs_binary(
4949
"//javascript/node/selenium-webdriver/lib/atoms:get_attribute",
5050
"//javascript/node/selenium-webdriver/lib/atoms:is_displayed",
5151
],
52-
entry_point = "selenium/javascript/node/selenium-webdriver/lib/test/fileserver.js",
52+
entry_point = "lib/test/fileserver.ts",
5353
)
5454

5555
jasmine_node_test(

javascript/node/selenium-webdriver/lib/atoms/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ load("@build_bazel_rules_nodejs//:defs.bzl", "nodejs_binary")
33
nodejs_binary(
44
name = "make_atoms_module",
55
data = ["make-atoms-module.js"],
6-
entry_point = "selenium/javascript/node/selenium-webdriver/lib/atoms/make-atoms-module",
6+
entry_point = ":make-atoms-module.js",
77
)
88

99
# genrules used to copy closure_js_binary outputs to locations

0 commit comments

Comments
 (0)