Function: collectPeerDependencies()
function collectPeerDependencies(artifactsByGenerator, files): Record<string, Record<string, string>>;
Defined in: packages/core/src/writer/peers.ts:20
Namespace -> (package -> semver range). Per namespace, union the
peerDependencies of every generator that emitted a file under
<namespace>/<generatorName>/. Identical ranges de-duplicate; the same
package with two different ranges from two generators throws
OutputPeerConflictError (fail-fast). Namespace and package keys are sorted.
Parameters
| Parameter | Type |
|---|---|
artifactsByGenerator | Record<string, GeneratorArtifact> |
files | VirtualFile[] |
Returns
Record<string, Record<string, string>>