File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,6 @@ workspace(
5
5
6
6
load ("@bazel_tools//tools/build_defs/repo:http.bzl" , "http_archive" )
7
7
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
-
15
8
# Add skylib which contains common Bazel utilities.
16
9
http_archive (
17
10
name = "bazel_skylib" ,
Original file line number Diff line number Diff line change 1
- load ("@build_bazel_rules_nodejs//:providers.bzl" , "run_node" )
2
-
3
1
def _extract_api_to_json (ctx ):
4
2
"""Implementation of the extract_api_to_json rule"""
5
3
@@ -49,10 +47,9 @@ def _extract_api_to_json(ctx):
49
47
50
48
# Define an action that runs the nodejs_binary executable. This is
51
49
# the main thing that this rule does.
52
- run_node (
53
- ctx = ctx ,
50
+ ctx .actions .run (
54
51
inputs = depset (ctx .files .srcs + ctx .files .extra_entries ),
55
- executable = " _extract_api_to_json" ,
52
+ executable = ctx . executable . _extract_api_to_json ,
56
53
outputs = [json_output ],
57
54
arguments = [args ],
58
55
env = {
You can’t perform that action at this time.
0 commit comments