WIP permission error

Seto Elkahfi committed Jun 8, 2024 at 14:54 UTC b9d73fae2a19a2b0b69a8f16d7ddc303e2c543f1
1 file changed +17
BUILD.bazel
+17
@@ -3,6 +3,8 @@
3 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")
8 load("defs.bzl", "next")
9
10 # package(default_visibility = ["//:__subpackages__"])
@@ -39,3 +41,18 @@ next(
41 next_bin = "./node_modules/next/dist/bin/next",
42 next_js_binary = ":next_js_binary",
43 )
44 +
45 +tauri_bin.tauri_binary(
46 + name = "tauri_binary",
47 + visibility = ["//visibility:public"],
48 +)
49 +
50 +js_run_devserver(
51 + name = "tauri_dev",
52 + data = glob(["src-tauri/*"]) + [
53 + "//:node_modules",
54 + "//:next",
55 + ],
56 + command = "./node_modules/@tauri-apps/cli/tauri.js",
57 + args = ["dev"],
58 +)