Skip to content

Commit

Permalink
Adds load visibility to TypeScript Starlark code.
Browse files Browse the repository at this point in the history
Refs #67.
  • Loading branch information
dgp1130 committed Feb 19, 2023
1 parent 4d02668 commit f32d429
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/typescript/defs.bzl
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions tools/typescript/ts_project.bzl
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 2 additions & 0 deletions tools/typescript/types_only.bzl
Original file line number Diff line number Diff line change
@@ -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(
Expand Down

0 comments on commit f32d429

Please sign in to comment.