| "Internal implementation details" |
| |
| load("@aspect_rules_js//js:defs.bzl", "js_library") |
| load("@bazel_skylib//:bzl_library.bzl", "bzl_library") |
| |
| package(default_visibility = ["//npm:__subpackages__"]) |
| |
| js_library( |
| name = "npm_publish_mjs", |
| srcs = ["npm_publish.mjs"], |
| visibility = ["//visibility:public"], |
| ) |
| |
| bzl_library( |
| name = "npm_package", |
| srcs = ["npm_package.bzl"], |
| deps = [ |
| ":npm_package_info", |
| "//js:defs", |
| "//js:libs", |
| "//js:providers", |
| "@bazel_lib//lib:copy_to_directory", |
| "@bazel_lib//tools:version", |
| "@bazel_skylib//lib:dicts", |
| "@bazel_skylib//lib:versions", |
| "@jq.bzl//jq", |
| ], |
| ) |
| |
| bzl_library( |
| name = "npm_link_package", |
| srcs = ["npm_link_package.bzl"], |
| deps = [ |
| ":npm_link_package_store", |
| ":npm_package_store", |
| ":utils", |
| ], |
| ) |
| |
| bzl_library( |
| name = "npm_link_package_store", |
| srcs = ["npm_link_package_store.bzl"], |
| deps = [ |
| ":npm_package_store_info", |
| ":utils", |
| "//js:providers", |
| "@bazel_lib//lib:copy_directory", |
| "@bazel_skylib//lib:paths", |
| "@tar.bzl//tar", |
| ], |
| ) |
| |
| bzl_library( |
| name = "npm_package_store", |
| srcs = ["npm_package_store.bzl"], |
| deps = [ |
| ":npm_package_info", |
| ":npm_package_store_info", |
| ":utils", |
| "@bazel_lib//lib:copy_directory", |
| "@bazel_skylib//lib:paths", |
| ], |
| ) |
| |
| bzl_library( |
| name = "npm_import", |
| srcs = ["npm_import.bzl"], |
| # It's referenced by generated repositories. |
| visibility = ["//visibility:public"], |
| deps = [ |
| ":exclude_package_contents_presets.bzl", |
| ":npm_link_package_store", |
| ":npm_package_internal", |
| ":npm_package_store_internal", |
| ":pnpm", |
| ":starlark_codegen_utils", |
| ":utils", |
| "@aspect_rules_js//js:defs", |
| "@bazel_lib//lib:directory_path", |
| "@bazel_lib//lib:repo_utils", |
| "@bazel_lib//lib:repositories", |
| "@bazel_lib//lib:utils", |
| "@bazel_skylib//lib:dicts", |
| "@bazel_tools//tools/build_defs/repo:git_worker.bzl", |
| ], |
| ) |
| |
| bzl_library( |
| name = "npm_translate_lock_generate", |
| srcs = ["npm_translate_lock_generate.bzl"], |
| deps = [ |
| ":starlark_codegen_utils", |
| ":utils", |
| "@bazel_lib//lib:base64", |
| "@bazel_skylib//lib:dicts", |
| "@bazel_skylib//lib:partial", |
| "@bazel_skylib//lib:paths", |
| ], |
| ) |
| |
| bzl_library( |
| name = "npm_translate_lock_helpers", |
| srcs = ["npm_translate_lock_helpers.bzl"], |
| deps = [ |
| "@bazel_skylib//lib:new_sets", |
| ], |
| ) |
| |
| bzl_library( |
| name = "npm_translate_lock_state", |
| srcs = ["npm_translate_lock_state.bzl"], |
| deps = [ |
| ":npm_translate_lock_generate", |
| ":npmrc", |
| ":utils", |
| "@bazel_lib//lib:base64", |
| "@bazel_lib//lib:repo_utils", |
| "@bazel_skylib//lib:dicts", |
| "@bazel_skylib//lib:partial", |
| "@bazel_skylib//lib:paths", |
| ], |
| ) |
| |
| bzl_library( |
| name = "npm_translate_lock", |
| srcs = ["npm_translate_lock.bzl"], |
| deps = [ |
| ":exclude_package_contents_presets.bzl", |
| ":list_sources", |
| ":npm_translate_lock_generate", |
| ":npm_translate_lock_helpers", |
| ":npm_translate_lock_state", |
| ":npmrc", |
| ":pnpm", |
| ":pnpm_repository", |
| ":transitive_closure", |
| ":utils", |
| "@bazel_lib//lib:repositories", |
| "@bazel_lib//lib:write_source_files", |
| "@bazel_skylib//lib:dicts", |
| "@bazel_skylib//lib:paths", |
| ], |
| ) |
| |
| bzl_library( |
| name = "utils", |
| srcs = ["utils.bzl"], |
| deps = [ |
| "@bazel_features//:features", |
| "@bazel_lib//lib:paths", |
| "@bazel_lib//lib:repo_utils", |
| "@bazel_lib//lib:utils", |
| "@bazel_skylib//lib:types", |
| "@bazel_tools//tools/build_defs/repo:cache.bzl", |
| ], |
| ) |
| |
| bzl_library( |
| name = "pnpm", |
| srcs = ["pnpm.bzl"], |
| deps = [ |
| "//platforms/pnpm:index_bzl", |
| ], |
| ) |
| |
| bzl_library( |
| name = "transitive_closure", |
| srcs = ["transitive_closure.bzl"], |
| deps = [ |
| "utils", |
| "@bazel_skylib//lib:dicts", |
| ], |
| ) |
| |
| bzl_library( |
| name = "npm_package_internal", |
| srcs = ["npm_package_internal.bzl"], |
| deps = [":npm_package_info"], |
| ) |
| |
| bzl_library( |
| name = "npm_package_store_internal", |
| srcs = ["npm_package_store_internal.bzl"], |
| deps = [ |
| ":npm_package_info", |
| ":npm_package_store", |
| "@bazel_skylib//lib:dicts", |
| ], |
| ) |
| |
| bzl_library( |
| name = "pnpm_repository", |
| srcs = ["pnpm_repository.bzl"], |
| deps = [ |
| ":npm_import", |
| ":versions", |
| ], |
| ) |
| |
| bzl_library( |
| name = "pnpm_extension", |
| srcs = ["pnpm_extension.bzl"], |
| deps = [ |
| ":pnpm_repository", |
| ":versions", |
| "@bazel_lib//lib:lists", |
| ], |
| ) |
| |
| bzl_library( |
| name = "list_sources", |
| srcs = ["list_sources.bzl"], |
| ) |
| |
| bzl_library( |
| name = "npm_package_info", |
| srcs = ["npm_package_info.bzl"], |
| ) |
| |
| bzl_library( |
| name = "npm_package_store_info", |
| srcs = ["npm_package_store_info.bzl"], |
| ) |
| |
| bzl_library( |
| name = "npm_translate_lock_generate.docs", |
| srcs = ["npm_translate_lock_generate.docs.bzl"], |
| ) |
| |
| bzl_library( |
| name = "npmrc", |
| srcs = ["npmrc.bzl"], |
| ) |
| |
| bzl_library( |
| name = "starlark_codegen_utils", |
| srcs = ["starlark_codegen_utils.bzl"], |
| ) |
| |
| bzl_library( |
| name = "versions", |
| srcs = ["versions.bzl"], |
| ) |