Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/heft > IFileSelectionSpecifier

IFileSelectionSpecifier interface

Used to specify a selection of one or more files.

Signature:

export interface IFileSelectionSpecifier 

Properties

PropertyModifiersTypeDescription
excludeGlobs?string[](Optional) Globs that should be explicitly excluded. This takes precedence over globs listed in "includeGlobs" and files that match the file extensions provided in "fileExtensions". Only supported when the sourcePath is a folder.
fileExtensions?string[](Optional) File extensions that should be included from the source folder. Only supported when the sourcePath is a folder.
includeGlobs?string[](Optional) Globs that should be explicitly included. Only supported when the sourcePath is a folder.
sourcePathstringAbsolute path to the target. The provided sourcePath can be to a file or a folder. If fileExtensions, excludeGlobs, or includeGlobs are specified, the sourcePath is assumed to be a folder. If it is not a folder, an error will be thrown.