ListWorkspacePackagesOptions
Defined in: list-workspace-packages.ts:8
Options for listWorkspacePackagesSync.
Properties
Section titled “Properties”listDirs?
Section titled “listDirs?”
optionallistDirs?: (dir) =>string[]
Defined in: list-workspace-packages.ts:14
Replaces the directory listing: the names of the subdirectories of dir. Throws an ENOENT error when dir is absent.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string[]
readFile?
Section titled “readFile?”
optionalreadFile?: (path) =>string
Defined in: list-workspace-packages.ts:12
Replaces the package.json read — for callers with an injected or in-memory filesystem.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string
roots?
Section titled “roots?”
optionalroots?: readonlystring[]
Defined in: list-workspace-packages.ts:10
Directories under the repo root whose children are packages; each must stay inside it. Defaults to packages and plugins.