diff --git a/js/private/translate_pnpm_lock.bzl b/js/private/translate_pnpm_lock.bzl index 20241295d..4ea20e9e1 100644 --- a/js/private/translate_pnpm_lock.bzl +++ b/js/private/translate_pnpm_lock.bzl @@ -269,18 +269,6 @@ def _fp_link_path(root_path, import_path, rel_path): fail("root bazel package first party dep not supported") return fp_link_path -def _user_workspace_root(repository_ctx): - pnpm_lock = repository_ctx.attr.pnpm_lock - segments = [] - if pnpm_lock.package: - segments.extend(pnpm_lock.package.split("/")) - segments.extend(pnpm_lock.name.split("/")) - segments.pop() - user_workspace_root = repository_ctx.path(pnpm_lock).dirname - for i in segments: - user_workspace_root = user_workspace_root.dirname - return str(user_workspace_root) - def _impl(rctx): if rctx.attr.prod and rctx.attr.dev: fail("prod and dev attributes cannot both be set to true") @@ -361,9 +349,6 @@ def link_js_packages(): optional = package_info.get("optional") has_bin = package_info.get("hasBin") requires_build = package_info.get("requiresBuild") - # Workaround for third party packages - # so they are brought in from the workspace - # instead of being downloaded again. integrity = package_info.get("integrity") transitive_closure = package_info.get("transitiveClosure")