Helper rule to gather files from JsInfo providers of targets and provide them as default outputs
js_info_files(name, srcs, include_npm_sources, include_sources, include_transitive_sources, include_transitive_types, include_types)
Gathers files from the JsInfo providers from targets in srcs and provides them as default outputs.
This helper rule is used by the js_run_binary
macro.
ATTRIBUTES
Name | Description | Type | Mandatory | Default |
---|---|---|---|---|
name | A unique name for this target. | Name | required | |
srcs | List of targets to gather files from. | List of labels | optional | [] |
include_npm_sources | When True, files in npm_sources from JsInfo providers in srcs targets are included in the default outputs of the target.transitive_files from NpmPackageStoreInfo providers in srcs targets are also included in the default outputs of the target. |
Boolean | optional | True |
include_sources | When True, sources from JsInfo providers in srcs targets are included in the default outputs of the target. |
Boolean | optional | True |
include_transitive_sources | When True, transitive_sources from JsInfo providers in srcs targets are included in the default outputs of the target. |
Boolean | optional | True |
include_transitive_types | When True, transitive_types from JsInfo providers in srcs targets are included in the default outputs of the target.Defaults to False since types are generally not needed at runtime and introducing them could slow down developer round trip time due to having to generate typings on source file changes. |
Boolean | optional | False |
include_types | When True, types from JsInfo providers in srcs targets are included in the default outputs of the target.Defaults to False since types are generally not needed at runtime and introducing them could slow down developer round trip time due to having to generate typings on source file changes. NB: These are types from direct srcs dependencies only. You may also need to set include_transitive_types to True. |
Boolean | optional | False |