Use generated js_binary rules

Seto Elkahfi committed Jun 21, 2024 at 17:42 UTC e89ffe3b8067978d5e0a82db902fdd0ec9c0d45f
1 file changed +2 -10
BUILD.bazel
+2 -10
@@ -4,11 +4,8 @@ load("@npm//:defs.bzl", "npm_link_all_packages")
4 load("@aspect_rules_ts//ts:defs.bzl", "ts_config")
5 load("@npm//:next/package_json.bzl", next_bin = "bin")
6 load("@npm//:@tauri-apps/cli/package_json.bzl", tauri_bin = "bin")
7 -load("@aspect_rules_js//js:defs.bzl", "js_run_devserver")
7 load("defs.bzl", "next")
8
10 -# package(default_visibility = ["//:__subpackages__"])
11 -
9 # Create the root of the "virtual store" of npm dependencies under bazel-out.
10 # This must be done in the package where the pnpm workspace is rooted.
11 npm_link_all_packages(name = "node_modules")
@@ -45,14 +42,9 @@ next(
42 tauri_bin.tauri_binary(
43 name = "tauri_binary",
44 visibility = ["//visibility:public"],
48 -)
49 -
50 -js_run_devserver(
51 - name = "tauri_dev",
45 + args = ["dev"],
46 data = [
47 "//:node_modules",
48 "//:next",
55 - ] + glob(["src-tauri/*"]),
56 - tool = ":tauri_binary",
57 - args = ["dev"],
49 + ] + glob(["src-tauri/**"]),
50 )