Skip to content

Commit

Permalink
Hoists debug in the pnpm workspace.
Browse files Browse the repository at this point in the history
This makes it available even to packages which don't declare a dependency on it, which is necessary to work around a pnpm-compatibility issue in WebDriverIO.

See: #48 (comment)
  • Loading branch information
dgp1130 committed Jul 20, 2022
1 parent b905a33 commit 5c20443
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions WORKSPACE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ npm_translate_lock(
name = "npm_rules_js",
pnpm_lock = "//:pnpm-lock.yaml",
verify_node_modules_ignored = "//:.bazelignore",
public_hoist_packages = {
# Hoist `debug` to the "" (root) Bazel package so it can be imported by `devtools`.
# See: https://github.com/dgp1130/rules_prerender/issues/48#issuecomment-1189804133.
# TODO(#48): Remove after WebDriver supports pnpm.
"[email protected]": [""],
},
)

load("@npm_rules_js//:repositories.bzl", "npm_repositories")
Expand Down

0 comments on commit 5c20443

Please sign in to comment.