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(
55
66load ("@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.
169http_archive (
1710 name = "bazel_skylib" ,
Original file line number Diff line number Diff line change 1- load ("@build_bazel_rules_nodejs//:providers.bzl" , "run_node" )
2-
31def _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 = {
You can’t perform that action at this time.
0 commit comments