OptionalafterA string to add after the list. Can be a static string or a function that receives all workspaces metadata and returns a string.
OptionalbeforeA string to add before the list. Can be a static string or a function that receives all workspaces metadata and returns a string. Defaults to a line of text mentioning the count of packages.
OptionaldelimiterThe delimiter to use between list items in the output.
OptionalfilterA function to filter the workspaces to include in the list. Receives the workspace metadata and should return true to include it, or false to exclude it. The default value is to include all workspaces.
OptionalsortA function to compare two workspaces for sorting.
Receives the metadata for both workspaces and should return a negative
number if a should come before b, a positive number if a should come
after b, or 0 if they are equal.
The default value is to sort by workspace.relativePath in natural
language order.
OptionaltemplateData to use in the template function.
OptionaltemplateA template function to use for list items. Can optionally be async. The function will receive the workspace metadata and template data as arguments and should return the output string for each package entry. Defaults to a simple markdown template function.
OptionalworkingThe working directory to list packages from. Should be the root of the monorepo. Defaults to the current working directory.
Options for the monorepo packages list.