Skip to content

relizy / assignPackagesToGroups

Function: assignPackagesToGroups() ​

assignPackagesToGroups(__namedParameters): Map<string, string[]>

Defined in: src/core/groups.ts:177

Assign each package directory matched by the groups to one group. A package matched by several groups goes to the group listing its exact path (a pattern without glob); any other overlap is ambiguous and throws. The directories ignored globally (ignored) or by a group (its ignored option) are not matched by that group.

Parameters ​

__namedParameters ​

cwd ​

string

groups ​

VersionGroup[]

ignored? ​

string[]

Returns ​

Map<string, string[]>

Released under the MIT License.