Skip to content

ListWorkspacePackagesOptions

Defined in: list-workspace-packages.ts:8

Options for listWorkspacePackagesSync.

optional listDirs?: (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.

string

string[]


optional readFile?: (path) => string

Defined in: list-workspace-packages.ts:12

Replaces the package.json read — for callers with an injected or in-memory filesystem.

string

string


optional roots?: readonly string[]

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.