commit | 634f190c31f470b39a38985b711dd095c5338f42 | [log] [tgz] |
---|---|---|
author | lucassloan <lucassloan@google.com> | Mon Sep 16 15:28:37 2019 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Sep 16 15:28:58 2019 -0700 |
tree | 0ea14dd6648ea74073984e8bc0a55ef157b9aed3 | |
parent | 19cded910f7145a1e2ffb9359d8030c7910df5ef [diff] |
Don't re-stat the BUILD file. Previously readBUILD returned a newly created *build.File struct if it didn't find an existing BUILD file. This meant that other functions that needed to know if there was an existing BUILD file had to stat the BUILD file to check if it existed. Now, readBUILD returns a nil pointer if there isn't an existing BUILD, so the other functions can just check if the bld they're passed is nil. PiperOrigin-RevId: 269434939
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.