| 1 | "Bazel module dependencies, see https://bazel.build/external/overview#bzlmod" |
| 2 | |
| 3 | bazel_dep(name = "bazel_skylib", version = "1.7.1") |
| 4 | bazel_dep(name = "aspect_rules_js", version = "1.42.3") |
| 5 | bazel_dep(name = "aspect_rules_ts", version = "2.4.1") |
| 6 | bazel_dep(name = "rules_nodejs", version = "6.1.1") |
| 7 | bazel_dep(name = "rules_rust", version = "0.46.0") |
| 8 | |
| 9 | ####### Node.js version ######### |
| 10 | # By default you get the node version from DEFAULT_NODE_VERSION in @rules_nodejs//nodejs:repositories.bzl |
| 11 | # Optionally you can pin a different node version: |
| 12 | node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node") |
| 13 | node.toolchain(node_version_from_nvmrc = "//:.nvmrc") |
| 14 | ################################# |
| 15 | |
| 16 | pnpm = use_extension("@aspect_rules_js//npm:extensions.bzl", "pnpm", dev_dependency = True) |
| 17 | use_repo(pnpm, "pnpm") |
| 18 | |
| 19 | npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm", dev_dependency = True) |
| 20 | npm.npm_translate_lock( |
| 21 | name = "npm", |
| 22 | npmrc = "//:.npmrc", |
| 23 | pnpm_lock = "//:pnpm-lock.yaml", |
| 24 | public_hoist_packages = { |
| 25 | "@next/eslint-plugin-next": ["next.js"], |
| 26 | "eslint-config-react-app": ["react"], |
| 27 | "eslint@8.28.0": ["react"], |
| 28 | }, |
| 29 | verify_node_modules_ignored = "//:.bazelignore", |
| 30 | ) |
| 31 | use_repo(npm, "npm") |
| 32 | |
| 33 | rules_ts_ext = use_extension( |
| 34 | "@aspect_rules_ts//ts:extensions.bzl", |
| 35 | "ext", |
| 36 | dev_dependency = True, |
| 37 | ) |
| 38 | rules_ts_ext.deps() |
| 39 | use_repo(rules_ts_ext, "npm_typescript") |
| 40 | |
| 41 | crate = use_extension( |
| 42 | "@rules_rust//crate_universe:extension.bzl", |
| 43 | "crate", |
| 44 | ) |
| 45 | |
| 46 | crate.spec( |
| 47 | package = "tauri-cli", |
| 48 | version = "1.5.14", |
| 49 | ) |
| 50 | |
| 51 | crate.annotation(crate = "tauri-cli", gen_binaries = ["cargo-tauri"]) |
| 52 | |
| 53 | crate.from_specs() |
| 54 | |
| 55 | use_repo(crate, "crates") |