Skip to content

Commit

Permalink
[js] Expose pnpm as a tool we can use
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Jun 21, 2024
1 parent d45dbb1 commit ae65ae3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ linter.register(name = "rust-rustfmt")
node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node")
node.toolchain(node_version = "18.17.0")

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

npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm")
npm.npm_translate_lock(
name = "npm",
Expand Down
5 changes: 5 additions & 0 deletions javascript/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

load("@npm//javascript/node/selenium-webdriver:prettier/package_json.bzl", prettier_bin = "bin")

alias(
name = "pnpm",
actual = "@pnpm//:pnpm",
)

prettier_bin.prettier_binary(
name = "prettier",
)

0 comments on commit ae65ae3

Please sign in to comment.