Skip to content

Commit

Permalink
Migrate everything to bzlmod
Browse files Browse the repository at this point in the history
  • Loading branch information
tsawada committed Oct 31, 2024
1 parent 94ecace commit 9354a74
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 59 deletions.
39 changes: 39 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,42 @@ bazel_dep(
version = "7.3.1",
dev_dependency = True,
)

bazel_dep(name = "aspect_bazel_lib", version = "2.9.3")

bazel_dep(name = "aspect_rules_js", version = "1.42.3")

####### Node.js version #########
# By default you get the node version from DEFAULT_NODE_VERSION in @rules_nodejs//nodejs:repositories.bzl
# Optionally you can pin a different node version:
bazel_dep(name = "rules_nodejs", version = "5.8.3")
node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node")
node.toolchain(node_version = "16.14.2")
#################################

npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm", dev_dependency = True)

npm.npm_translate_lock(
name = "npm",
pnpm_lock = "//:pnpm-lock.yaml",
verify_node_modules_ignored = "//:.bazelignore",
)

use_repo(npm, "npm")

pnpm = use_extension("@aspect_rules_js//npm:extensions.bzl", "pnpm")

# Allows developers to use the matching pnpm version, for example:
# bazel run -- @pnpm --dir /home/runner/work/rules_js/rules_js install
use_repo(pnpm, "pnpm")


bazel_dep(name = "aspect_rules_ts", version = "2.4.2")

rules_ts_ext = use_extension("@aspect_rules_ts//ts:extensions.bzl", "ext", dev_dependency = True)

rules_ts_ext.deps()

use_repo(rules_ts_ext, "npm_typescript")
bazel_dep(name = "aspect_rules_esbuild", version = "0.20.1")

59 changes: 0 additions & 59 deletions WORKSPACE

This file was deleted.

0 comments on commit 9354a74

Please sign in to comment.