commit | 58887b5275124ec090d4e7f23b785293958ca377 | [log] [tgz] |
---|---|---|
author | martinprobst <martinprobst@google.com> | Mon Sep 23 09:03:04 2019 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Sep 23 09:03:26 2019 -0700 |
tree | 0ec189f27ad84ba21198187a7c08133bbf1bfd80 | |
parent | f86f2f2b210c6880d9dd36a6549287f0b63a233a [diff] |
Turn PatternKind into a non-const enum. PatternKind is later re-exported. const enums cannot be re-exported, as they are removed at compile time and don't exist at runtime. This fixes a compilation error in TS3.6: conformance_pattern_rule.ts:57:9 - error TS2475: 'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query. PiperOrigin-RevId: 270688010
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.