Global

Type Definitions

ManifestSearchOptions

Source:
Properties:
Name Type Description
glob Object

Options to pass to the glob library.

Properties
Name Type Description
cwd String

The current working directory in which to search. Defaults to process.cwd().

ignore Array.<String>

Add a pattern or an array of glob patterns to exclude matches. Set to ["**\/node_modules/**\/*"] by default.

query String

The query to pass to Glob. If not explicitly provided, a default query will be built according to other options.

deep Boolean

Sets the default query. If true, searches directories recursively for manifest files. If false, only one layer of directories is searched. Defaults to false.

manifestFiles Array.<String>

The filenames for manifest files to search for. "*" is allowed according to the Glob library. Defaults to ["package.json"].

include Array.<SearchResult>

Specific search results to include in the output. Useful to add a single file in a larger directory excluded by glob.ignore.

Options to configure the operation of ManifestSearch

Type:
  • Object

SearchResult

Source:

The path to a found manifest.

Type:
  • String

SearchResults

Source:

All results from a package search.

Type: