Philipp Schrader | 175a93c | 2023-02-19 13:13:40 -0800 | [diff] [blame^] | 1 | load("@aspect_rules_ts//ts:defs.bzl", _ts_project = "ts_project") |
| 2 | |
| 3 | def ts_project(name, **kwargs): |
| 4 | """ts_project() macro with default tsconfig and aligning params. |
| 5 | """ |
| 6 | |
| 7 | _ts_project( |
| 8 | name = name, |
| 9 | |
| 10 | # Default tsconfig and aligning attributes |
| 11 | tsconfig = kwargs.pop("tsconfig", "//:tsconfig"), |
| 12 | declaration = kwargs.pop("declaration", True), |
| 13 | declaration_map = kwargs.pop("declaration_map", True), |
| 14 | source_map = kwargs.pop("source_map", True), |
| 15 | |
| 16 | # TODO(phil): Is this a good idea? I don't _actually_ know what this |
| 17 | # does. |
| 18 | supports_workers = False, |
| 19 | **kwargs |
| 20 | ) |