Skip to content

DiscoverWorkspacePackagesOptions

Defined in: discover-workspace-packages.ts:20

Options for discoverWorkspacePackages.

optional excludeGroups?: readonly string[]

Defined in: discover-workspace-packages.ts:45

Leave out the packages of these version groups. A repo that releases some folders on their own line releases everything else together, and that release must not sweep the independent groups in.


optional group?: string

Defined in: discover-workspace-packages.ts:39

Only the packages of one version group: a folder of the repo (clients, observability). A package belongs when it is that folder or sits under it.


optional listDirs?: (dir) => string[]

Defined in: discover-workspace-packages.ts:24

Replaces the directory listing: the names of the subdirectories of dir. Throw an ENOENT error when dir is absent.

string

string[]


optional onSkippedPattern?: (skipped) => void

Defined in: discover-workspace-packages.ts:34

Called once for each pattern discovery could not interpret (an unsupported glob form, a path outside the repo). The pattern is skipped, never thrown; this is how a caller learns of it.

SkippedWorkspacePattern

void


optional readFile?: (path) => string

Defined in: discover-workspace-packages.ts:22

Replaces the package.json read of a candidate package. Throw when it is absent – or leave it out to read the real file.

string

string


optional readText?: (path) => string

Defined in: discover-workspace-packages.ts:29

Replaces the read of pnpm-workspace.yaml and of the root package.json (workspaces). Throw (ENOENT) when the file is absent – or leave it out to read the real files.

string

string