From f32d429d1d7d5f54f84a45ce5b62b7acd6e3d860 Mon Sep 17 00:00:00 2001 From: Doug Parker Date: Sat, 18 Feb 2023 23:21:20 -0800 Subject: [PATCH] Adds load visibility to TypeScript Starlark code. Refs #67. --- tools/typescript/defs.bzl | 2 ++ tools/typescript/ts_project.bzl | 2 ++ tools/typescript/types_only.bzl | 2 ++ 3 files changed, 6 insertions(+) diff --git a/tools/typescript/defs.bzl b/tools/typescript/defs.bzl index 70bdb8d9..f2fa974c 100644 --- a/tools/typescript/defs.bzl +++ b/tools/typescript/defs.bzl @@ -1,5 +1,7 @@ load(":ts_project.bzl", _ts_project = "ts_project") load(":types_only.bzl", _types_only = "types_only") +visibility("public") + ts_project = _ts_project types_only = _types_only diff --git a/tools/typescript/ts_project.bzl b/tools/typescript/ts_project.bzl index 0d0dea84..74e09c1f 100644 --- a/tools/typescript/ts_project.bzl +++ b/tools/typescript/ts_project.bzl @@ -1,5 +1,7 @@ load("@aspect_rules_ts//ts:defs.bzl", _ts_project = "ts_project") +visibility("private") + def ts_project(name, tsconfig = None, **kwargs): _ts_project( name = name, diff --git a/tools/typescript/types_only.bzl b/tools/typescript/types_only.bzl index ea6de24c..d128bc05 100644 --- a/tools/typescript/types_only.bzl +++ b/tools/typescript/types_only.bzl @@ -1,5 +1,7 @@ load("@aspect_rules_js//js:providers.bzl", "JsInfo", "js_info") +visibility("private") + def _types_only_impl(ctx): info = ctx.attr.dep[JsInfo] return js_info(