forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(NA): creates wrapper macro for ts_project rule (elastic#117424) (…
…elastic#117454) Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
- Loading branch information
1 parent
d891dfc
commit a29bbc0
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
"Simple wrapper over the general ts_project rule from rules_nodejs so we can override some configs" | ||
|
||
load("@npm//@bazel/typescript:index.bzl", _ts_project = "ts_project") | ||
|
||
def ts_project(validate = False, **kwargs): | ||
"""A macro around the upstream ts_project rule. | ||
Args: | ||
validate: boolean; whether to check that the tsconfig JSON settings match the attributes on this target. Defaults to false | ||
**kwargs: the rest | ||
""" | ||
|
||
_ts_project( | ||
validate = validate, | ||
**kwargs | ||
) |