commit | 43e462681990b3a5894930bacfc5be6e816f37db | [log] [tgz] |
---|---|---|
author | martinprobst <martinprobst@google.com> | Wed Nov 06 12:18:40 2019 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Wed Nov 06 12:19:04 2019 -0800 |
tree | e56fe44aa47a83a69f75a6d07bf24f8b70c4b989 | |
parent | cf5cc528c776ec736e138f1eb5b1f9f6e2418281 [diff] |
Refactor tsc_wrapped's runFromOptions to be more composable. This allows other tools to reproduce tsc_wrapped's compiler configuration & plugin setup with fidelity. The refactoring moves any console printing out of the former `runFromOptions`, renames it to `createProgramAndEmit()`, and handles console emit on the caller level. It also required observing `options.noEmit` in several locations that'd previously write files unconditionally. PiperOrigin-RevId: 278914685
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.