DiscoverWorkspacePackagesOptions
Defined in: discover-workspace-packages.ts:20
Options for discoverWorkspacePackages.
Properties
Section titled “Properties”excludeGroups?
Section titled “excludeGroups?”
optionalexcludeGroups?: readonlystring[]
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.
group?
Section titled “group?”
optionalgroup?: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.
listDirs?
Section titled “listDirs?”
optionallistDirs?: (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.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string[]
onSkippedPattern?
Section titled “onSkippedPattern?”
optionalonSkippedPattern?: (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.
Parameters
Section titled “Parameters”skipped
Section titled “skipped”Returns
Section titled “Returns”void
readFile?
Section titled “readFile?”
optionalreadFile?: (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.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string
readText?
Section titled “readText?”
optionalreadText?: (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.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string