tsconfig.json files using extends
Bazel

tsconfig.json files using extends


ts_config

ts_config(name, deps, src)

Allows a tsconfig.json file to extend another file.

Normally, you just give a single tsconfig.json file as the tsconfig attribute of a ts_library rule. However, if your tsconfig.json uses the extends feature from TypeScript, then the Bazel implementation needs to know about that extended configuration file as well, to pass them both to the TypeScript compiler.

Attributes

name

Name; Required

A unique name for this rule.

deps

List of labels; Required

Additional tsconfig.json files referenced via extends

src

Label; Required

The tsconfig.json file passed to the TypeScript compiler