Helper rule to gather files from JsInfo providers of targets and provide them as default outputs

js_filegroup

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

NameDescriptionTypeMandatoryDefault
nameA unique name for this target.Namerequired
srcsList of targets to gather files from.List of labelsoptional[]
include_declarationsWhen True, declarations from JsInfo providers in srcs targets are included in the default outputs of the target.

Defaults to False since declarations 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.
BooleanoptionalFalse
include_npm_linked_packagesWhen True, files in npm_linked_packages from JsInfo providers in srcs targets are included in the default outputs of the target.

transitive_files from NpmPackageStoreInfo providers in data targets are also included in the default outputs of the target.
BooleanoptionalTrue
include_sourcesWhen True, sources from JsInfo providers in srcs targets are included in the default outputs of the target.BooleanoptionalTrue
include_transitive_declarationsWhen True, transitive_declarations from JsInfo providers in srcs targets are included in the default outputs of the target.

Defaults to False since declarations 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.
BooleanoptionalFalse
include_transitive_sourcesWhen True, transitive_sources from JsInfo providers in srcs targets are included in the default outputs of the target.BooleanoptionalTrue