Skip to content

Commit ae65ae3

Browse files
committed
[js] Expose pnpm as a tool we can use
1 parent d45dbb1 commit ae65ae3

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

MODULE.bazel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ linter.register(name = "rust-rustfmt")
4141
node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node")
4242
node.toolchain(node_version = "18.17.0")
4343

44+
pnpm = use_extension("@aspect_rules_js//npm:extensions.bzl", "pnpm", dev_dependency = True)
45+
use_repo(pnpm, "pnpm")
46+
4447
npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm")
4548
npm.npm_translate_lock(
4649
name = "npm",

javascript/BUILD.bazel

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

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

5+
alias(
6+
name = "pnpm",
7+
actual = "@pnpm//:pnpm",
8+
)
9+
510
prettier_bin.prettier_binary(
611
name = "prettier",
712
)

0 commit comments

Comments
 (0)