From 5c20443e535ad09389e1a1f0942abda073352879 Mon Sep 17 00:00:00 2001 From: Doug Parker Date: Tue, 19 Jul 2022 22:08:11 -0700 Subject: [PATCH] Hoists `debug` in the pnpm workspace. 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: https://github.com/dgp1130/rules_prerender/issues/48#issuecomment-1189804133 --- WORKSPACE.bazel | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/WORKSPACE.bazel b/WORKSPACE.bazel index 6e012205..3c2ca0ef 100644 --- a/WORKSPACE.bazel +++ b/WORKSPACE.bazel @@ -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. + "debug@4.3.1": [""], + }, ) load("@npm_rules_js//:repositories.bzl", "npm_repositories")