Skip to content

Commit fd35317

Browse files
committed
build: drop last remaining usage of build_bazel_rules_nodejs
1 parent fab3737 commit fd35317

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

WORKSPACE

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,6 @@ workspace(
55

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

8-
# Add NodeJS rules
9-
http_archive(
10-
name = "build_bazel_rules_nodejs",
11-
sha256 = "709cc0dcb51cf9028dd57c268066e5bc8f03a119ded410a13b5c3925d6e43c48",
12-
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.8.4/rules_nodejs-5.8.4.tar.gz"],
13-
)
14-
158
# Add skylib which contains common Bazel utilities.
169
http_archive(
1710
name = "bazel_skylib",

tools/adev-api-extraction/extract_api_to_json.bzl

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
load("@build_bazel_rules_nodejs//:providers.bzl", "run_node")
2-
31
def _extract_api_to_json(ctx):
42
"""Implementation of the extract_api_to_json rule"""
53

@@ -49,10 +47,9 @@ def _extract_api_to_json(ctx):
4947

5048
# Define an action that runs the nodejs_binary executable. This is
5149
# the main thing that this rule does.
52-
run_node(
53-
ctx = ctx,
50+
ctx.actions.run(
5451
inputs = depset(ctx.files.srcs + ctx.files.extra_entries),
55-
executable = "_extract_api_to_json",
52+
executable = ctx.executable._extract_api_to_json,
5653
outputs = [json_output],
5754
arguments = [args],
5855
env = {

0 commit comments

Comments
 (0)