mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 15:31:48 +00:00
* 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
24 lines
539 B
Python
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
|
|
)
|