MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / resolveTargetDeps

Function resolveTargetDeps

apps/kimi-code/scripts/native/native-deps.mjs:92–104  ·  view source on GitHub ↗
(target)

Source from the content-addressed store, hash-verified

90 * Resolve which deps need collecting for a given build target, with concrete names.
91 */
92export function resolveTargetDeps(target) {
93 if (!isSupportedTarget(target)) {
94 throw new Error(`Unsupported native asset target: ${target}`);
95 }
96 return nativeDeps
97 .filter((d) => d.collect !== 'virtual')
98 .map((d) => ({
99 ...d,
100 resolvedName: d.name(target),
101 nativeFileRelatives: d.nativeFileRelatives?.(target) ?? [],
102 parentName: d.parent ? nativeDeps.find((p) => p.id === d.parent)?.name(target) ?? null : null,
103 }));
104}

Callers 3

assets.mjsFile · 0.90
collectNativeAssetsFunction · 0.90

Calls 2

isSupportedTargetFunction · 0.85
nameMethod · 0.80

Tested by

no test coverage detected