Skip to content

Commit

Permalink
Migrate everything to bzlmod (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsawada authored Oct 31, 2024
1 parent 94ecace commit 3a1502c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 59 deletions.
29 changes: 29 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,32 @@ 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")
bazel_dep(name = "rules_nodejs", version = "5.8.3")

node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node")
node.toolchain(node_version = "16.16.0")

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 3a1502c

Please sign in to comment.