MCPcopy Create free account
hub / github.com/effect-app/libs / selectVersionMentions

Function selectVersionMentions

packages/cli/src/sync-effect-app-subtree.ts:75–82  ·  view source on GitHub ↗
(mentions: Arr.NonEmptyArray<VersionMention>)

Source from the content-addressed store, hash-verified

73}
74
75const selectVersionMentions = (mentions: Arr.NonEmptyArray<VersionMention>) => {
76 for (const packageName of packagePreference) {
77 const selected = mentions.filter((mention) => mention.name === packageName)
78 if (Arr.isArrayNonEmpty(selected)) return selected
79 }
80
81 return mentions
82}
83
84const describeMentions = (mentions: ReadonlyArray<VersionMention>) =>
85 mentions

Callers 1

Calls 1

filterMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…