commit | 68739d9ccbf100bb134a50b11250fea48a9705d5 | [log] [tgz] |
---|---|---|
author | lucassloan <lucassloan@google.com> | Fri Mar 15 14:17:06 2019 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Mar 15 14:17:25 2019 -0700 |
tree | 6b3e706ef58c5420b7b56a3ceb91480037f59d51 | |
parent | a82986561fbc78465957c6b46a87e61f26f931d8 [diff] |
Support aliases and reexporting ts_libraries for ordinary imports. Instead of querying directly for rules with a given source file in their srcs, load all the rules in the package, and check for aliases and reexporting ts_libraries. PiperOrigin-RevId: 238708950
Looking for documentation for TypeScript bazel rules that used to be here? See https://npmjs.com/package/@bazel/typescript
This repo contains a mirror of some Google-internal bits that support TypeScript development under Bazel.
It contains these utilities:
ts_devserver
: a Go library and binary that runs a fast local web server which concatenates JavaScript on-the-fly. It requires inputs in a named module format (module ids must be contained in the file, not inferred from the file's path).ts_auto_deps
: a Go library and binary which generates BUILD.bazel
files from TypeScript sources.tsc_wrapped
: a TypeScript program which wraps the TypeScript compiler, hosting it under a Bazel worker.tsetse
: a collection of third-party “strictness” checks which we add to the TypeScript compiler.internal/common/*.bzl
: some Starlark utility code for running the ts_library
rule.There are no user-facing bits in this repo. These utilities are consumed in https://github.com/bazelbuild/rules_nodejs/tree/master/packages/typescript
Please file issues for ts_library
rule and other Bazel rules in that repo.