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

Function resolvePackageEntry

apps/kimi-code/scripts/native/assets.mjs:105–113  ·  view source on GitHub ↗
(packageRoot, packageJson)

Source from the content-addressed store, hash-verified

103}
104
105function resolvePackageEntry(packageRoot, packageJson) {
106 const rawMain =
107 typeof packageJson.main === 'string'
108 ? packageJson.main
109 : typeof packageJson.module === 'string'
110 ? packageJson.module
111 : 'index.js';
112 return resolveFileCandidate(resolve(packageRoot, rawMain));
113}
114
115function relativeRuntimeSpecifiers(text) {
116 const specifiers = new Set();

Callers 1

collectPackageFilesFunction · 0.85

Calls 2

resolveFileCandidateFunction · 0.85
resolveFunction · 0.50

Tested by

no test coverage detected