sourcegraph/client/shared/dev/defaults.bzl
Jason Bedard fc1589106d
bazel - build client/common + client/extension-api-types (#45689)
* bazel: add aspect rules_ts,jest, upgrade rules_js, generate pnpm-lock.yaml

* bazel: add initial typescript rules

* bazel: build client/extension-api-types

* bazel: build client/common
2022-12-15 11:58:45 +01:00

24 lines
539 B
Python

load("@aspect_rules_ts//ts:defs.bzl", _ts_project = "ts_project")
def ts_project(name, deps = [], **kwargs):
deps = deps + [
"//:node_modules/tslib",
]
"""Default arguments for ts_project."""
_ts_project(
name = name,
deps = deps,
# tsconfig options
tsconfig = "//:tsconfig",
composite = True,
declaration = True,
declaration_map = True,
resolve_json_module = True,
source_map = True,
# Allow any other args
**kwargs
)